diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2004-12-28 10:49:43 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 22:30:17 +0400 |
commit | b188ffe876382ecc009ceb4fe033fd6ec7ba4ede (patch) | |
tree | 076658e5088c376aafbccafd8a767c587e14aea9 /arch | |
parent | 0964ce24d091a1d3dc7f667e1b107ab77d4325e6 (diff) | |
download | linux-b188ffe876382ecc009ceb4fe033fd6ec7ba4ede.tar.xz |
Fix build with SMP disabled and preemption enabled.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/gdb-stub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/gdb-stub.c b/arch/mips/kernel/gdb-stub.c index d3fd1ab14274..7c46b336c7db 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; |