From: David Daney Date: Tue, 23 Sep 2008 07:09:51 +0000 (-0700) Subject: MIPS: Scheduler support for HARDWARE_WATCHPOINTS. X-Git-Tag: v2.6.28-rc1~719^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2c708cbaa6031b73be6b992adb3ec1811f91cdb1;p=linux-2.6-omap-h63xx.git MIPS: Scheduler support for HARDWARE_WATCHPOINTS. Here we hook up the scheduler. Whenever we switch to a new process, we check to see if the watch registers should be installed, and do it if needed. Signed-off-by: David Daney Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/system.h b/arch/mips/include/asm/system.h index a944eda4faf..cd30f83235b 100644 --- a/arch/mips/include/asm/system.h +++ b/arch/mips/include/asm/system.h @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -76,6 +77,7 @@ do { \ __restore_dsp(current); \ if (cpu_has_userlocal) \ write_c0_userlocal(current_thread_info()->tp_value); \ + __restore_watch(); \ } while (0) static inline unsigned long __xchg_u32(volatile int * m, unsigned int val)