summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>2018-01-04 16:57:58 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-01-14 21:05:51 -0600
commit6d2e281bc22f270bb63a86275710679d991d98e8 (patch)
treeba6ab6d226d874737a5cff9f41eb3c58e2ab3211
parent7b613693d537859acfa13968ecfa28082ec8f72f (diff)
downloadblackbird-skiboot-6d2e281bc22f270bb63a86275710679d991d98e8.tar.gz
blackbird-skiboot-6d2e281bc22f270bb63a86275710679d991d98e8.zip
SLW: Delay cpuidle device-tree creation
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> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--core/opal.c1
-rw-r--r--hw/slw.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/core/opal.c b/core/opal.c
index 1bca774c..6d93ae08 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -412,7 +412,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 8110b5af..c9c6e63a 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -1705,4 +1705,5 @@ void slw_init(void)
for_each_chip(chip)
slw_init_chip_p9(chip);
}
+ add_cpu_idle_state_properties();
}
OpenPOWER on IntegriCloud