From: Ralf Baechle Date: Tue, 28 Dec 2004 07:49:43 +0000 (+0000) Subject: Fix build with SMP disabled and preemption enabled. X-Git-Tag: v2.6.15-rc1~731^2~1^2~334 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b188ffe876382ecc009ceb4fe033fd6ec7ba4ede;p=linux-2.6 Fix build with SMP disabled and preemption enabled. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/gdb-stub.c b/arch/mips/kernel/gdb-stub.c index d3fd1ab142..7c46b336c7 100644 --- a/arch/mips/kernel/gdb-stub.c +++ b/arch/mips/kernel/gdb-stub.c @@ -637,15 +637,18 @@ static struct gdb_bp_save async_bp; * and only one can be active at a time. */ extern spinlock_t smp_call_lock; + void set_async_breakpoint(unsigned long *epc) { /* skip breaking into userland */ if ((*epc & 0x80000000) == 0) return; +#ifdef CONFIG_SMP /* avoid deadlock if someone is make IPC */ if (spin_is_locked(&smp_call_lock)) return; +#endif async_bp.addr = *epc; *epc = (unsigned long)async_breakpoint;