mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
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>
This commit is contained in:
committed by
Jon Medhurst
parent
625b10c3d3
commit
0251cea2c0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user