Skip to content

Commit

Permalink
occ: Skip setting cores to nominal frequency in P9
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shilpasri authored and stewartsmith committed May 31, 2017
1 parent 7213b8a commit 6cad88d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions hw/occ.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 6cad88d

Please sign in to comment.