aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/smpboot.c
diff options
context:
space:
mode:
authorBenjamin LaHaise <bcrl@kvack.org>2006-01-11 22:43:03 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-11 19:01:56 -0800
commitf2ecfab91c6f248cf71dff66c2111d31c8cc1747 (patch)
tree4d0c1834fac10d50cb25d53b82d33794df9a625b /arch/x86_64/kernel/smpboot.c
parent[PATCH] x86_64: Move int 3 handler to debug stack and allow to increase it. (diff)
downloadlinux-dev-f2ecfab91c6f248cf71dff66c2111d31c8cc1747.tar.xz
linux-dev-f2ecfab91c6f248cf71dff66c2111d31c8cc1747.zip
[PATCH] x86_64: another mb() for smpboot.c
The following is probably a good idea given that the atomic_set() isn't a barrier here either. Signed-off-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/smpboot.c')
-rw-r--r--arch/x86_64/kernel/smpboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c
index 043b1d262a30..f513dacc177f 100644
--- a/arch/x86_64/kernel/smpboot.c
+++ b/arch/x86_64/kernel/smpboot.c
@@ -646,6 +646,7 @@ static int __cpuinit wakeup_secondary_via_INIT(int phys_apicid, unsigned int sta
send_status = apic_read(APIC_ICR) & APIC_ICR_BUSY;
} while (send_status && (timeout++ < 1000));
+ mb();
atomic_set(&init_deasserted, 1);
num_starts = 2;