From f2ecfab91c6f248cf71dff66c2111d31c8cc1747 Mon Sep 17 00:00:00 2001 From: Benjamin LaHaise Date: Wed, 11 Jan 2006 22:43:03 +0100 Subject: [PATCH] [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 Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- arch/x86_64/kernel/smpboot.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.7.4