aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2012-12-10 00:36:26 -0500
committerJon Medhurst <tixy@linaro.org>2013-05-03 13:47:02 +0100
commitdde8cbcdaa29e3b05f33305ed7e55242c8cc9c84 (patch)
tree4751d2f7a4e006c788bf995301d4bfd77ad2503e
parent99ada4af139f13f75c3d9621aa216937e4c92c84 (diff)
downloadvexpress-lsk-dde8cbcdaa29e3b05f33305ed7e55242c8cc9c84.tar.gz
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 <nico@linaro.org>
-rw-r--r--arch/arm/mach-vexpress/cpuidle-tc2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-vexpress/cpuidle-tc2.c b/arch/arm/mach-vexpress/cpuidle-tc2.c
index 0a983dd531b..1f1efc4936f 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;
}