From: 黄涛 Date: Tue, 6 Mar 2012 06:19:27 +0000 (+0800) Subject: rk30: cpu hotplug: better cpu die X-Git-Tag: firefly_0821_release~9595^2~90 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=58d7488f6cd0088fdf27a8967dfaad0804fc4433;p=firefly-linux-kernel-4.4.55.git rk30: cpu hotplug: better cpu die --- diff --git a/arch/arm/mach-rk30/hotplug.c b/arch/arm/mach-rk30/hotplug.c index 5ea1ae3d48fe..159269149cb4 100644 --- a/arch/arm/mach-rk30/hotplug.c +++ b/arch/arm/mach-rk30/hotplug.c @@ -60,8 +60,10 @@ void platform_cpu_die(unsigned int cpu) /* wait for SoC code in platform_cpu_kill() to shut off CPU core * power. CPU bring up starts from the reset vector. */ - while (1) - cpu_do_idle(); + while (1) { + dsb(); + wfi(); + } } int platform_cpu_disable(unsigned int cpu)