diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-09-01 14:18:06 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-09-01 14:21:11 +1000 |
commit | 05f52a8dd7c7e402896e049fd24f83d56b70aff4 (patch) | |
tree | 640cfc9947caa4a3be30c2c5a8031391deacdbbf /hw | |
parent | e4048499b915a0a53b2702dec14461c3f5914d67 (diff) | |
download | talos-skiboot-05f52a8dd7c7e402896e049fd24f83d56b70aff4.tar.gz talos-skiboot-05f52a8dd7c7e402896e049fd24f83d56b70aff4.zip |
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')
-rw-r--r-- | hw/slw.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |