aboutsummaryrefslogtreecommitdiff
path: root/hw/slw.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-09-01 14:18:06 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-09-01 14:21:11 +1000
commit05f52a8dd7c7e402896e049fd24f83d56b70aff4 (patch)
tree640cfc9947caa4a3be30c2c5a8031391deacdbbf /hw/slw.c
parente4048499b915a0a53b2702dec14461c3f5914d67 (diff)
downloadskiboot-05f52a8dd7c7e402896e049fd24f83d56b70aff4.zip
skiboot-05f52a8dd7c7e402896e049fd24f83d56b70aff4.tar.gz
skiboot-05f52a8dd7c7e402896e049fd24f83d56b70aff4.tar.bz2
core: Setup the OPAL DT node before platform probe
The platform probe code might want to add things to it. While at it, make add_cpu_idle_state_properties() local to slw.c and call it from slw_init() instead of from add_opal_node(). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/slw.c')
-rw-r--r--hw/slw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/slw.c b/hw/slw.c
index d709901..c0983ba 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -506,7 +506,7 @@ static struct cpu_idle_states power8_cpu_idle_states[] = {
};
/* Add device tree properties to describe idle states */
-void add_cpu_idle_state_properties(void)
+static void add_cpu_idle_state_properties(void)
{
struct dt_node *power_mgt;
struct cpu_idle_states *states;
@@ -940,6 +940,8 @@ void slw_init(void)
for_each_chip(chip)
slw_init_chip(chip);
+
+ add_cpu_idle_state_properties();
}
/* Workarounds while entering fast-sleep */