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.
@@ -894,12 +894,15 @@ 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) {
+ /*
+ * 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 */
for_each_chip(chip)
