From: Nicolas Pitre Date: Mon, 10 Dec 2012 05:36:26 +0000 (-0500) Subject: ARM: vexpress/tc2: clean up the cpuidle driver X-Git-Tag: firefly_0821_release~3680^2~236^2^2~2^2~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0251cea2c008e018aea480a275b05dda36bef55f;p=firefly-linux-kernel-4.4.55.git ARM: vexpress/tc2: clean up the cpuidle driver Use the bL_cpu_suspend method instead of bL_cpu_power_down. This allows for the driver to become usable on non SPC based platform such as RTSM if vexpress_spc_check_loaded() is removed. Signed-off-by: Nicolas Pitre --- diff --git a/arch/arm/mach-vexpress/cpuidle-tc2.c b/arch/arm/mach-vexpress/cpuidle-tc2.c index 0a983dd531b7..1f1efc4936f4 100644 --- a/arch/arm/mach-vexpress/cpuidle-tc2.c +++ b/arch/arm/mach-vexpress/cpuidle-tc2.c @@ -90,9 +90,7 @@ static int notrace tc2_powerdown_finisher(unsigned long arg) unsigned int cpu = mpidr & 0xf; bL_set_entry_vector(cpu, cluster, cpu_resume); - vexpress_spc_write_bxaddr_reg(cluster, cpu, - virt_to_phys(bL_entry_point)); - bL_cpu_power_down(); + bL_cpu_suspend(0); /* 0 should be replaced with better value here */ return 1; }