summaryrefslogtreecommitdiffstats
path: root/arch
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
parentb556b35e98ad2b9174a7a623d152cdf412d1a999 (diff)
downloadop-kernel-dev-f2ecfab91c6f248cf71dff66c2111d31c8cc1747.zip
op-kernel-dev-f2ecfab91c6f248cf71dff66c2111d31c8cc1747.tar.gz
[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')
-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 043b1d2..f513dac 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;
OpenPOWER on IntegriCloud