projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0964ce2
)
Fix build with SMP disabled and preemption enabled.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 28 Dec 2004 07:49:43 +0000
(07:49 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sat, 29 Oct 2005 18:30:17 +0000
(19:30 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/gdb-stub.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/gdb-stub.c
b/arch/mips/kernel/gdb-stub.c
index d3fd1ab14274c25daeaa1fce41159f5b3a07d9d5..7c46b336c7db876b0e90bd7ddfa255122a4af259 100644
(file)
--- 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;