diff mbox series

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

Message ID 1515065286-8656-2-git-send-email-akshay.adiga@linux.vnet.ibm.com
State Accepted
Headers show
Series p9_stop_api error handling | expand

Commit Message

Akshay Adiga Jan. 4, 2018, 11:27 a.m. UTC
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@linux.vnet.ibm.com>
---
 core/opal.c | 1 -
 hw/slw.c    | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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();
 }