877fe9bd358affde6d744826e0a3e1f08671b7bc
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.24 / 013-mips_gdb_stub.patch
1 --- a/arch/mips/kernel/gdb-stub.c
2 +++ b/arch/mips/kernel/gdb-stub.c
3 @@ -656,6 +656,7 @@ void set_async_breakpoint(unsigned long
4 *epc = (unsigned long)async_breakpoint;
5 }
6
7 +#ifdef CONFIG_SMP
8 static void kgdb_wait(void *arg)
9 {
10 unsigned flags;
11 @@ -668,6 +669,7 @@ static void kgdb_wait(void *arg)
12
13 local_irq_restore(flags);
14 }
15 +#endif
16
17 /*
18 * GDB stub needs to call kgdb_wait on all processor with interrupts