diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-01 14:22:01 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-01 09:58:13 -0400 |
commit | 16a8016372c42c7628eb4a39d75386a461e8c5d0 (patch) | |
tree | 94ed1fab5b073d66be50a876ad81104eeb73c732 /arch/avr32/include | |
parent | 8af4efac26e1805c76144ad44118157239308d35 (diff) |
sanitize tsk_is_polling()
Make default just return 0. The current default (checking
TIF_POLLING_NRFLAG) is taken to architectures that need it;
ones that don't do polling in their idle threads don't need
to defined TIF_POLLING_NRFLAG at all.
ia64 defined both TS_POLLING (used by its tsk_is_polling())
and TIF_POLLING_NRFLAG (not used at all). Killed the latter...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/avr32/include')
-rw-r--r-- | arch/avr32/include/asm/thread_info.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/avr32/include/asm/thread_info.h b/arch/avr32/include/asm/thread_info.h index a32c88cb2601..dc0c45721499 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,7 +89,6 @@ 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) | ||
95 | #define _TIF_SINGLE_STEP (1 << TIF_SINGLE_STEP) | 92 | #define _TIF_SINGLE_STEP (1 << TIF_SINGLE_STEP) |
96 | #define _TIF_MEMDIE (1 << TIF_MEMDIE) | 93 | #define _TIF_MEMDIE (1 << TIF_MEMDIE) |
97 | #define _TIF_CPU_GOING_TO_SLEEP (1 << TIF_CPU_GOING_TO_SLEEP) | 94 | #define _TIF_CPU_GOING_TO_SLEEP (1 << TIF_CPU_GOING_TO_SLEEP) |
@@ -104,7 +101,6 @@ static inline struct thread_info *current_thread_info(void) | |||
104 | ((1 << TIF_SIGPENDING) \ | 101 | ((1 << TIF_SIGPENDING) \ |
105 | | _TIF_NOTIFY_RESUME \ | 102 | | _TIF_NOTIFY_RESUME \ |
106 | | (1 << TIF_NEED_RESCHED) \ | 103 | | (1 << TIF_NEED_RESCHED) \ |
107 | | (1 << TIF_POLLING_NRFLAG) \ | ||
108 | | (1 << TIF_BREAKPOINT) \ | 104 | | (1 << TIF_BREAKPOINT) \ |
109 | | (1 << TIF_RESTORE_SIGMASK)) | 105 | | (1 << TIF_RESTORE_SIGMASK)) |
110 | 106 | ||