diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2015-10-20 11:06:45 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-10-30 14:46:08 +1100 |
commit | b5d4978b3fc525d01dcdc74266e8dcf3615fdaa3 (patch) | |
tree | 3b5a714610b5a8972000e009cefb3ad177a1a63e /hw | |
parent | 9677b85387c18429ab73e621ac033adeb34f9d80 (diff) | |
download | skiboot-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')
-rw-r--r-- | hw/slw.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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(); } |