aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/include/asm/thread_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/avr32/include/asm/thread_info.h')
-rw-r--r--arch/avr32/include/asm/thread_info.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/avr32/include/asm/thread_info.h b/arch/avr32/include/asm/thread_info.h
index e5deda4691db..6dc62e1f94c7 100644
--- a/arch/avr32/include/asm/thread_info.h
+++ b/arch/avr32/include/asm/thread_info.h
@@ -77,8 +77,6 @@ static inline struct thread_info *current_thread_info(void)
77#define TIF_SYSCALL_TRACE 0 /* syscall trace active */ 77#define TIF_SYSCALL_TRACE 0 /* syscall trace active */
78#define TIF_SIGPENDING 1 /* signal pending */ 78#define TIF_SIGPENDING 1 /* signal pending */
79#define TIF_NEED_RESCHED 2 /* rescheduling necessary */ 79#define TIF_NEED_RESCHED 2 /* rescheduling necessary */
80#define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling
81 TIF_NEED_RESCHED */
82#define TIF_BREAKPOINT 4 /* enter monitor mode on return */ 80#define TIF_BREAKPOINT 4 /* enter monitor mode on return */
83#define TIF_SINGLE_STEP 5 /* single step in progress */ 81#define TIF_SINGLE_STEP 5 /* single step in progress */
84#define TIF_MEMDIE 6 /* is terminating due to OOM killer */ 82#define TIF_MEMDIE 6 /* is terminating due to OOM killer */
@@ -91,10 +89,9 @@ static inline struct thread_info *current_thread_info(void)
91#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) 89#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
92#define _TIF_SIGPENDING (1 << TIF_SIGPENDING) 90#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
93#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) 91#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
94#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) 92#define _TIF_BREAKPOINT (1 << TIF_BREAKPOINT)
95#define _TIF_SINGLE_STEP (1 << TIF_SINGLE_STEP) 93#define _TIF_SINGLE_STEP (1 << TIF_SINGLE_STEP)
96#define _TIF_MEMDIE (1 << TIF_MEMDIE) 94#define _TIF_MEMDIE (1 << TIF_MEMDIE)
97#define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK)
98#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)
99#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) 96#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
100 97
@@ -102,17 +99,14 @@ static inline struct thread_info *current_thread_info(void)
102 99
103/* work to do on interrupt/exception return */ 100/* work to do on interrupt/exception return */
104#define _TIF_WORK_MASK \ 101#define _TIF_WORK_MASK \
105 ((1 << TIF_SIGPENDING) \ 102 (_TIF_SIGPENDING \
106 | _TIF_NOTIFY_RESUME \ 103 | _TIF_NOTIFY_RESUME \
107 | (1 << TIF_NEED_RESCHED) \ 104 | _TIF_NEED_RESCHED \
108 | (1 << TIF_POLLING_NRFLAG) \ 105 | _TIF_BREAKPOINT)
109 | (1 << TIF_BREAKPOINT) \
110 | (1 << TIF_RESTORE_SIGMASK))
111 106
112/* work to do on any return to userspace */ 107/* work to do on any return to userspace */
113#define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | (1 << TIF_SYSCALL_TRACE) | \ 108#define _TIF_ALLWORK_MASK (_TIF_WORK_MASK | _TIF_SYSCALL_TRACE)
114 _TIF_NOTIFY_RESUME)
115/* work to do on return from debug mode */ 109/* work to do on return from debug mode */
116#define _TIF_DBGWORK_MASK (_TIF_WORK_MASK & ~(1 << TIF_BREAKPOINT)) 110#define _TIF_DBGWORK_MASK (_TIF_WORK_MASK & ~_TIF_BREAKPOINT)
117 111
118#endif /* __ASM_AVR32_THREAD_INFO_H */ 112#endif /* __ASM_AVR32_THREAD_INFO_H */