projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc81fd
)
ARM: CPU hotplug: ensure correct ordering of unplug
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 30 Nov 2010 12:21:30 +0000
(12:21 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Mon, 20 Dec 2010 15:09:11 +0000
(15:09 +0000)
Don't call idle_task_exit() with interrupts disabled, and ensure
that we have a memory barrier after interrupts are disabled but
before signalling that this CPU has shut down.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/kernel/smp.c
b/arch/arm/kernel/smp.c
index 8c81ff9b3732d276d4cbf95376f4b3301ca81e48..1a1c5e2b3ef9372bf5d72a6c244d285c99843cda 100644
(file)
--- a/
arch/arm/kernel/smp.c
+++ b/
arch/arm/kernel/smp.c
@@
-269,9
+269,11
@@
void __ref cpu_die(void)
{
unsigned int cpu = smp_processor_id();
- local_irq_disable();
idle_task_exit();
+ local_irq_disable();
+ mb();
+
/* Tell __cpu_die() that this CPU is now safe to dispose of */
complete(&cpu_died);
This page took
0.028374 seconds
and
5
git commands to generate.