diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-31 22:24:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-01 09:58:17 -0400 |
commit | 971ceb17dc702fa93fe4b4b7b293248c160bf880 (patch) | |
tree | 572f17d5da3c0e7c5dd405c1840264e1dba9b02a /arch | |
parent | a925328de88af2f93dbe189fdac436c389d2e5d5 (diff) |
avr32: trim masks
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/avr32/include/asm/thread_info.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/avr32/include/asm/thread_info.h b/arch/avr32/include/asm/thread_info.h index dc0c45721499..6dc62e1f94c7 100644 --- a/arch/avr32/include/asm/thread_info.h +++ b/arch/avr32/include/asm/thread_info.h | |||
@@ -89,6 +89,7 @@ static inline struct thread_info *current_thread_info(void) | |||
89 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) | 89 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
90 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | 90 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
91 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | 91 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
92 | #define _TIF_BREAKPOINT (1 << TIF_BREAKPOINT) | ||
92 | #define _TIF_SINGLE_STEP (1 << TIF_SINGLE_STEP) | 93 | #define _TIF_SINGLE_STEP (1 << TIF_SINGLE_STEP) |
93 | #define _TIF_MEMDIE (1 << TIF_MEMDIE) | 94 | #define _TIF_MEMDIE (1 << TIF_MEMDIE) |
94 | #define _TIF_CPU_GOING_TO_SLEEP (1 << TIF_CPU_GOING_TO_SLEEP) | 95 | #define _TIF_CPU_GOING_TO_SLEEP (1 << TIF_CPU_GOING_TO_SLEEP) |
@@ -98,16 +99,14 @@ static inline struct thread_info *current_thread_info(void) | |||
98 | 99 | ||
99 | /* work to do on interrupt/exception return */ | 100 | /* work to do on interrupt/exception return */ |
100 | #define _TIF_WORK_MASK \ | 101 | #define _TIF_WORK_MASK \ |
101 | ((1 << TIF_SIGPENDING) \ | 102 | (_TIF_SIGPENDING \ |
102 | | _TIF_NOTIFY_RESUME \ | 103 | | _TIF_NOTIFY_RESUME \ |
103 | | (1 << TIF_NEED_RESCHED) \ | 104 | | _TIF_NEED_RESCHED \ |
104 | | (1 << TIF_BREAKPOINT) \ | 105 | | _TIF_BREAKPOINT) |
105 | | (1 << TIF_RESTORE_SIGMASK)) | ||
106 | 106 | ||
107 | /* work to do on any return to userspace */ | 107 | /* work to do on any return to userspace */ |
108 | #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | (1 << TIF_SYSCALL_TRACE) | \ | 108 | #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | _TIF_SYSCALL_TRACE) |
109 | _TIF_NOTIFY_RESUME) | ||
110 | /* work to do on return from debug mode */ | 109 | /* work to do on return from debug mode */ |
111 | #define _TIF_DBGWORK_MASK (_TIF_WORK_MASK & ~(1 << TIF_BREAKPOINT)) | 110 | #define _TIF_DBGWORK_MASK (_TIF_WORK_MASK & ~_TIF_BREAKPOINT) |
112 | 111 | ||
113 | #endif /* __ASM_AVR32_THREAD_INFO_H */ | 112 | #endif /* __ASM_AVR32_THREAD_INFO_H */ |