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