aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-05-26 13:59:00 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-31 17:00:31 +1000
commit6cad88d794e3ddab91615d361e375f55c4efbc03 (patch)
tree9c805f22bc3f0e729e981db1d24990eb80b142a4 /hw
parent7213b8a5d26c22c9870b5fa35addec728688673c (diff)
downloadskiboot-6cad88d794e3ddab91615d361e375f55c4efbc03.zip
skiboot-6cad88d794e3ddab91615d361e375f55c4efbc03.tar.gz
skiboot-6cad88d794e3ddab91615d361e375f55c4efbc03.tar.bz2
occ: Skip setting cores to nominal frequency in P9
In P9, once OCC is up, it is supposed to setup the cores to nominal frequency. So skip this step in OPAL. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/occ.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 82775af..4be4df4 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -894,11 +894,14 @@ void occ_pstates_init(void)
return;
}
- /* Setup host based pstates and set nominal frequency */
- for_each_chip(chip) {
- for_each_available_core_in_chip(c, chip->id) {
- cpu_pstates_prepare_core(chip, c, pstate_nom);
- }
+ /*
+ * Setup host based pstates and set nominal frequency only in
+ * P8.
+ */
+ if (proc_gen == proc_gen_p8) {
+ for_each_chip(chip)
+ for_each_available_core_in_chip(c, chip->id)
+ cpu_pstates_prepare_core(chip, c, pstate_nom);
}
/* Add opal_poller to poll OCC throttle status of each chip */