Skip to content

Commit

Permalink
cpu: Don't enable nap mode/PM mode on non-P8
Browse files Browse the repository at this point in the history
We don't support it yet on others.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
ozbenh authored and stewartsmith committed Nov 15, 2016
1 parent 74a8c1d commit 29d1812
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/cpu.c
Expand Up @@ -355,6 +355,9 @@ void cpu_set_pm_enable(bool enabled)
prlog(PR_INFO, "CPU: %sing power management\n",
enabled ? "enabl" : "disabl");

if (proc_gen != proc_gen_p8)
return;

pm_enabled = enabled;

if (enabled)
Expand Down

0 comments on commit 29d1812

Please sign in to comment.