[Skiboot] [PATCH 1/9] SLW: Delay cpuidle device-tree creation

Akshay Adiga akshay.adiga at linux.vnet.ibm.com
Thu Jan 4 22:27:58 AEDT 2018


Create cpuidle device-tree after slw_init(), so that we can stop the
deeper states from being added , when wakeup engine is not present or
failed.

Signed-off-by: Akshay Adiga <akshay.adiga at linux.vnet.ibm.com>
---
 core/opal.c | 1 -
 hw/slw.c    | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/opal.c b/core/opal.c
index d33d527c..8bfa6615 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -407,7 +407,6 @@ void add_opal_node(void)
 	add_opal_firmware_node();
 	add_associativity_ref_point();
 	memcons_add_properties();
-	add_cpu_idle_state_properties();
 }
 
 static struct lock evt_lock = LOCK_UNLOCKED;
diff --git a/hw/slw.c b/hw/slw.c
index c2c755d1..d6d140f8 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -1689,4 +1689,5 @@ void slw_init(void)
 		for_each_chip(chip)
 			slw_init_chip_p9(chip);
 	}
+	add_cpu_idle_state_properties();
 }
-- 
2.14.3



More information about the Skiboot mailing list