Blame SOURCES/0004-cpuinfo-Do-not-enable-cpu-node-on-IBM-Power-System.patch

df7b7f
From 5438d15e79fdbd3c0ad9e156a850d964d257201c Mon Sep 17 00:00:00 2001
df7b7f
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
df7b7f
Date: Tue, 22 Aug 2017 20:58:11 +0530
df7b7f
Subject: [PATCH 4/5] cpuinfo: Do not enable cpu node on IBM Power System
df7b7f
df7b7f
On IBM Power System device tree parsing code detects CPU state
df7b7f
and sets enable flag properly. Hence do not call enable() from
df7b7f
cpuinfo code.
df7b7f
df7b7f
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
df7b7f
---
df7b7f
 src/core/cpuinfo.cc | 4 +++-
df7b7f
 1 file changed, 3 insertions(+), 1 deletion(-)
df7b7f
df7b7f
diff --git a/src/core/cpuinfo.cc b/src/core/cpuinfo.cc
df7b7f
index 9628ab3..2cf8eae 100644
df7b7f
--- a/src/core/cpuinfo.cc
df7b7f
+++ b/src/core/cpuinfo.cc
df7b7f
@@ -36,7 +36,9 @@ int n = 0)
df7b7f
   {
df7b7f
     cpu->addHint("icon", string("cpu"));
df7b7f
     cpu->claim(true);                             // claim the cpu and all its children
df7b7f
-    cpu->enable();                                // enable it
df7b7f
+    if (!is_system_ppc_ibm(node))
df7b7f
+      cpu->enable();                                // enable it
df7b7f
+
df7b7f
     return cpu;
df7b7f
   }
df7b7f
 
df7b7f
-- 
df7b7f
1.8.3.1
df7b7f