[Skiboot] [PATCH 4/4] cpu: Don't enable nap mode/PM mode on non-P8

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Sep 16 14:50:40 AEST 2016


We don't support it yet on others.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 core/cpu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/cpu.c b/core/cpu.c
index bad21ab..62140eb 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -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)
-- 
2.7.4



More information about the Skiboot mailing list