aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-03-03 12:12:50 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:55 -0400
commit321183c145a37e6d31cc55e0f69a226f9006e621 (patch)
treef230034dc40d34c5592185994d48ae9907ad87c8
parent3be5b49e8f1002bc562a2b4670093e4ebf27b4e9 (diff)
x86: add reboot_force test to native_smp_send_stop
This can be safely added to i386. After that, functions look exactly the same for both arches Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/smp_32.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/kernel/smp_32.c b/arch/x86/kernel/smp_32.c
index cde3a0ecd716..8be3e091dcd0 100644
--- a/arch/x86/kernel/smp_32.c
+++ b/arch/x86/kernel/smp_32.c
@@ -24,6 +24,7 @@
24#include <asm/tlbflush.h> 24#include <asm/tlbflush.h>
25#include <asm/mmu_context.h> 25#include <asm/mmu_context.h>
26#include <mach_apic.h> 26#include <mach_apic.h>
27#include <asm/proto.h>
27 28
28/* 29/*
29 * Some notes on x86 processor bugs affecting SMP operation: 30 * Some notes on x86 processor bugs affecting SMP operation:
@@ -622,10 +623,14 @@ static void stop_this_cpu (void * dummy)
622 623
623static void native_smp_send_stop(void) 624static void native_smp_send_stop(void)
624{ 625{
625 /* Don't deadlock on the call lock in panic */ 626 int nolock;
626 int nolock = !spin_trylock(&call_lock);
627 unsigned long flags; 627 unsigned long flags;
628 628
629 if (reboot_force)
630 return;
631
632 /* Don't deadlock on the call lock in panic */
633 nolock = !spin_trylock(&call_lock);
629 local_irq_save(flags); 634 local_irq_save(flags);
630 __smp_call_function(stop_this_cpu, NULL, 0, 0); 635 __smp_call_function(stop_this_cpu, NULL, 0, 0);
631 if (!nolock) 636 if (!nolock)