From: Al Viro Date: Sat, 5 May 2012 19:57:00 +0000 (-0400) Subject: MIPS: Unobfuscate _TIF..._MASK X-Git-Tag: next-20120926~112^2^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fe8ee12fd85a750d77c62b4c680fdc6bfa17bf87;p=karo-tx-linux.git MIPS: Unobfuscate _TIF..._MASK Signed-off-by: Al Viro Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/thread_info.h b/arch/mips/include/asm/thread_info.h index ca97e0ecb64b..6bd02dbba452 100644 --- a/arch/mips/include/asm/thread_info.h +++ b/arch/mips/include/asm/thread_info.h @@ -139,10 +139,11 @@ register struct thread_info *__current_thread_info __asm__("$28"); #define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT) /* work to do on interrupt/exception return */ -#define _TIF_WORK_MASK (0x0000ffef & \ - ~(_TIF_SECCOMP | _TIF_SYSCALL_AUDIT)) +#define _TIF_WORK_MASK \ + (_TIF_SIGPENDING | _TIF_NEED_RESCHED | _TIF_NOTIFY_RESUME | \ + _TIF_RESTORE_SIGMASK) /* work to do on any return to u-space */ -#define _TIF_ALLWORK_MASK (0x8000ffff & ~_TIF_SECCOMP) +#define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | _TIF_WORK_SYSCALL_EXIT) #endif /* __KERNEL__ */