aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/kernel/smp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 8c81ff9b3732..1a1c5e2b3ef9 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -269,9 +269,11 @@ void __ref cpu_die(void)
269{ 269{
270 unsigned int cpu = smp_processor_id(); 270 unsigned int cpu = smp_processor_id();
271 271
272 local_irq_disable();
273 idle_task_exit(); 272 idle_task_exit();
274 273
274 local_irq_disable();
275 mb();
276
275 /* Tell __cpu_die() that this CPU is now safe to dispose of */ 277 /* Tell __cpu_die() that this CPU is now safe to dispose of */
276 complete(&cpu_died); 278 complete(&cpu_died);
277 279