aboutsummaryrefslogtreecommitdiff
path: root/hw/slw.c
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2015-10-20 11:06:45 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-10-30 14:46:08 +1100
commitb5d4978b3fc525d01dcdc74266e8dcf3615fdaa3 (patch)
tree3b5a714610b5a8972000e009cefb3ad177a1a63e /hw/slw.c
parent9677b85387c18429ab73e621ac033adeb34f9d80 (diff)
downloadskiboot-b5d4978b3fc525d01dcdc74266e8dcf3615fdaa3.zip
skiboot-b5d4978b3fc525d01dcdc74266e8dcf3615fdaa3.tar.gz
skiboot-b5d4978b3fc525d01dcdc74266e8dcf3615fdaa3.tar.bz2
slw: Move add_cpu_idle_state_properties() to add_opal_node()
05f52a8dd7c7e402896e049fd24f83d56b70aff4 core: Setup the OPAL DT node before platform probe add_cpu_idle_state_properties() was made local to slw.c in the above commit which caused p7 systems to not populate the nap idle state in DT. So moving add_cpu_idle_state_properties() to add_opal_node to fix this bug. Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/slw.c')
-rw-r--r--hw/slw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/slw.c b/hw/slw.c
index a009090..710d16b 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -507,7 +507,7 @@ static struct cpu_idle_states power8_cpu_idle_states[] = {
};
/* Add device tree properties to describe idle states */
-static void add_cpu_idle_state_properties(void)
+void add_cpu_idle_state_properties(void)
{
struct dt_node *power_mgt;
struct cpu_idle_states *states;
@@ -1234,7 +1234,5 @@ void slw_init(void)
for_each_chip(chip)
slw_init_chip(chip);
- add_cpu_idle_state_properties();
-
slw_init_timer();
}