rk30: cpu hotplug: better cpu die
author黄涛 <huangtao@rock-chips.com>
Tue, 6 Mar 2012 06:19:27 +0000 (14:19 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 6 Mar 2012 06:20:12 +0000 (14:20 +0800)
arch/arm/mach-rk30/hotplug.c

index 5ea1ae3d48fe351bba6b033fa466eae33674fc0d..159269149cb4bed7c8107a204ce3f232b9d01d74 100644 (file)
@@ -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)