From b5d4978b3fc525d01dcdc74266e8dcf3615fdaa3 Mon Sep 17 00:00:00 2001 From: Shilpasri G Bhat Date: Tue, 20 Oct 2015 11:06:45 +0530 Subject: 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 Signed-off-by: Shilpasri G Bhat Signed-off-by: Stewart Smith --- hw/slw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hw/slw.c') 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(); } -- cgit v1.1