diff options
24 files changed, 116 insertions, 155 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index c589dc3ecd1a..33e6cc2ffd3b 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -46,7 +46,7 @@ fast_work_pending: | |||
46 | work_pending: | 46 | work_pending: |
47 | tst r1, #_TIF_NEED_RESCHED | 47 | tst r1, #_TIF_NEED_RESCHED |
48 | bne work_resched | 48 | bne work_resched |
49 | tst r1, #_TIF_NOTIFY_RESUME | _TIF_SIGPENDING | 49 | tst r1, #_TIF_SIGPENDING |
50 | beq no_work_pending | 50 | beq no_work_pending |
51 | mov r0, sp @ 'regs' | 51 | mov r0, sp @ 'regs' |
52 | mov r2, why @ 'syscall' | 52 | mov r2, why @ 'syscall' |
diff --git a/arch/arm26/kernel/entry.S b/arch/arm26/kernel/entry.S index 91496cc687b1..7ffcc6e4770e 100644 --- a/arch/arm26/kernel/entry.S +++ b/arch/arm26/kernel/entry.S | |||
@@ -194,7 +194,7 @@ fast_work_pending: | |||
194 | work_pending: | 194 | work_pending: |
195 | tst r1, #_TIF_NEED_RESCHED | 195 | tst r1, #_TIF_NEED_RESCHED |
196 | bne work_resched | 196 | bne work_resched |
197 | tst r1, #_TIF_NOTIFY_RESUME | _TIF_SIGPENDING | 197 | tst r1, #_TIF_SIGPENDING |
198 | beq no_work_pending | 198 | beq no_work_pending |
199 | mov r0, sp @ 'regs' | 199 | mov r0, sp @ 'regs' |
200 | mov r2, why @ 'syscall' | 200 | mov r2, why @ 'syscall' |
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index b7133cabdbea..14b8e5a6222b 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -591,13 +591,13 @@ pfm_set_task_notify(struct task_struct *task) | |||
591 | struct thread_info *info; | 591 | struct thread_info *info; |
592 | 592 | ||
593 | info = (struct thread_info *) ((char *) task + IA64_TASK_SIZE); | 593 | info = (struct thread_info *) ((char *) task + IA64_TASK_SIZE); |
594 | set_bit(TIF_NOTIFY_RESUME, &info->flags); | 594 | set_bit(TIF_PERFMON_WORK, &info->flags); |
595 | } | 595 | } |
596 | 596 | ||
597 | static inline void | 597 | static inline void |
598 | pfm_clear_task_notify(void) | 598 | pfm_clear_task_notify(void) |
599 | { | 599 | { |
600 | clear_thread_flag(TIF_NOTIFY_RESUME); | 600 | clear_thread_flag(TIF_PERFMON_WORK); |
601 | } | 601 | } |
602 | 602 | ||
603 | static inline void | 603 | static inline void |
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 2b66d53dcc55..9ef28da2c7fe 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S | |||
@@ -546,7 +546,6 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_ISERIES) | |||
546 | rfid | 546 | rfid |
547 | b . /* prevent speculative execution */ | 547 | b . /* prevent speculative execution */ |
548 | 548 | ||
549 | /* Note: this must change if we start using the TIF_NOTIFY_RESUME bit */ | ||
550 | do_work: | 549 | do_work: |
551 | #ifdef CONFIG_PREEMPT | 550 | #ifdef CONFIG_PREEMPT |
552 | andi. r0,r3,MSR_PR /* Returning to user mode? */ | 551 | andi. r0,r3,MSR_PR /* Returning to user mode? */ |
diff --git a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S index 830cfc6ee8cb..1d232e5f5658 100644 --- a/arch/x86_64/kernel/entry.S +++ b/arch/x86_64/kernel/entry.S | |||
@@ -282,7 +282,7 @@ sysret_careful: | |||
282 | sysret_signal: | 282 | sysret_signal: |
283 | TRACE_IRQS_ON | 283 | TRACE_IRQS_ON |
284 | sti | 284 | sti |
285 | testl $(_TIF_SIGPENDING|_TIF_NOTIFY_RESUME|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY),%edx | 285 | testl $(_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY),%edx |
286 | jz 1f | 286 | jz 1f |
287 | 287 | ||
288 | /* Really a signal */ | 288 | /* Really a signal */ |
@@ -375,7 +375,7 @@ int_very_careful: | |||
375 | jmp int_restore_rest | 375 | jmp int_restore_rest |
376 | 376 | ||
377 | int_signal: | 377 | int_signal: |
378 | testl $(_TIF_NOTIFY_RESUME|_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY),%edx | 378 | testl $(_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY),%edx |
379 | jz 1f | 379 | jz 1f |
380 | movq %rsp,%rdi # &ptregs -> arg1 | 380 | movq %rsp,%rdi # &ptregs -> arg1 |
381 | xorl %esi,%esi # oldset -> arg2 | 381 | xorl %esi,%esi # oldset -> arg2 |
@@ -599,7 +599,7 @@ retint_careful: | |||
599 | jmp retint_check | 599 | jmp retint_check |
600 | 600 | ||
601 | retint_signal: | 601 | retint_signal: |
602 | testl $(_TIF_SIGPENDING|_TIF_NOTIFY_RESUME|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY),%edx | 602 | testl $(_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY),%edx |
603 | jz retint_swapgs | 603 | jz retint_swapgs |
604 | TRACE_IRQS_ON | 604 | TRACE_IRQS_ON |
605 | sti | 605 | sti |
diff --git a/include/asm-alpha/thread_info.h b/include/asm-alpha/thread_info.h index 48a22e3e6f32..fb3185196298 100644 --- a/include/asm-alpha/thread_info.h +++ b/include/asm-alpha/thread_info.h | |||
@@ -67,28 +67,24 @@ register struct thread_info *__current_thread_info __asm__("$8"); | |||
67 | * TIF_SYSCALL_TRACE is known to be 0 via blbs. | 67 | * TIF_SYSCALL_TRACE is known to be 0 via blbs. |
68 | */ | 68 | */ |
69 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 69 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
70 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 70 | #define TIF_SIGPENDING 1 /* signal pending */ |
71 | #define TIF_SIGPENDING 2 /* signal pending */ | 71 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
72 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 72 | #define TIF_POLLING_NRFLAG 3 /* poll_idle is polling NEED_RESCHED */ |
73 | #define TIF_POLLING_NRFLAG 4 /* poll_idle is polling NEED_RESCHED */ | 73 | #define TIF_DIE_IF_KERNEL 4 /* dik recursion lock */ |
74 | #define TIF_DIE_IF_KERNEL 5 /* dik recursion lock */ | 74 | #define TIF_UAC_NOPRINT 5 /* see sysinfo.h */ |
75 | #define TIF_UAC_NOPRINT 6 /* see sysinfo.h */ | 75 | #define TIF_UAC_NOFIX 6 |
76 | #define TIF_UAC_NOFIX 7 | 76 | #define TIF_UAC_SIGBUS 7 |
77 | #define TIF_UAC_SIGBUS 8 | 77 | #define TIF_MEMDIE 8 |
78 | #define TIF_MEMDIE 9 | 78 | #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal */ |
79 | #define TIF_RESTORE_SIGMASK 10 /* restore signal mask in do_signal */ | ||
80 | 79 | ||
81 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 80 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
82 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
83 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 81 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
84 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 82 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
85 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 83 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
86 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) | 84 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) |
87 | 85 | ||
88 | /* Work to do on interrupt/exception return. */ | 86 | /* Work to do on interrupt/exception return. */ |
89 | #define _TIF_WORK_MASK (_TIF_NOTIFY_RESUME \ | 87 | #define _TIF_WORK_MASK (_TIF_SIGPENDING | _TIF_NEED_RESCHED) |
90 | | _TIF_SIGPENDING \ | ||
91 | | _TIF_NEED_RESCHED) | ||
92 | 88 | ||
93 | /* Work to do on any return to userspace. */ | 89 | /* Work to do on any return to userspace. */ |
94 | #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK \ | 90 | #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK \ |
diff --git a/include/asm-arm/thread_info.h b/include/asm-arm/thread_info.h index 69c65d56a6ac..41784357a204 100644 --- a/include/asm-arm/thread_info.h +++ b/include/asm-arm/thread_info.h | |||
@@ -134,22 +134,19 @@ extern void iwmmxt_task_switch(struct thread_info *); | |||
134 | /* | 134 | /* |
135 | * thread information flags: | 135 | * thread information flags: |
136 | * TIF_SYSCALL_TRACE - syscall trace active | 136 | * TIF_SYSCALL_TRACE - syscall trace active |
137 | * TIF_NOTIFY_RESUME - resumption notification requested | ||
138 | * TIF_SIGPENDING - signal pending | 137 | * TIF_SIGPENDING - signal pending |
139 | * TIF_NEED_RESCHED - rescheduling necessary | 138 | * TIF_NEED_RESCHED - rescheduling necessary |
140 | * TIF_USEDFPU - FPU was used by this task this quantum (SMP) | 139 | * TIF_USEDFPU - FPU was used by this task this quantum (SMP) |
141 | * TIF_POLLING_NRFLAG - true if poll_idle() is polling TIF_NEED_RESCHED | 140 | * TIF_POLLING_NRFLAG - true if poll_idle() is polling TIF_NEED_RESCHED |
142 | */ | 141 | */ |
143 | #define TIF_NOTIFY_RESUME 0 | 142 | #define TIF_SIGPENDING 0 |
144 | #define TIF_SIGPENDING 1 | 143 | #define TIF_NEED_RESCHED 1 |
145 | #define TIF_NEED_RESCHED 2 | ||
146 | #define TIF_SYSCALL_TRACE 8 | 144 | #define TIF_SYSCALL_TRACE 8 |
147 | #define TIF_POLLING_NRFLAG 16 | 145 | #define TIF_POLLING_NRFLAG 16 |
148 | #define TIF_USING_IWMMXT 17 | 146 | #define TIF_USING_IWMMXT 17 |
149 | #define TIF_MEMDIE 18 | 147 | #define TIF_MEMDIE 18 |
150 | #define TIF_FREEZE 19 | 148 | #define TIF_FREEZE 19 |
151 | 149 | ||
152 | #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) | ||
153 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | 150 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
154 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | 151 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
155 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) | 152 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
diff --git a/include/asm-arm26/thread_info.h b/include/asm-arm26/thread_info.h index 9b367ebe515d..f9b5c09b560f 100644 --- a/include/asm-arm26/thread_info.h +++ b/include/asm-arm26/thread_info.h | |||
@@ -110,21 +110,18 @@ extern void free_thread_info(struct thread_info *); | |||
110 | /* | 110 | /* |
111 | * thread information flags: | 111 | * thread information flags: |
112 | * TIF_SYSCALL_TRACE - syscall trace active | 112 | * TIF_SYSCALL_TRACE - syscall trace active |
113 | * TIF_NOTIFY_RESUME - resumption notification requested | ||
114 | * TIF_SIGPENDING - signal pending | 113 | * TIF_SIGPENDING - signal pending |
115 | * TIF_NEED_RESCHED - rescheduling necessary | 114 | * TIF_NEED_RESCHED - rescheduling necessary |
116 | * TIF_USEDFPU - FPU was used by this task this quantum (SMP) | 115 | * TIF_USEDFPU - FPU was used by this task this quantum (SMP) |
117 | * TIF_POLLING_NRFLAG - true if poll_idle() is polling TIF_NEED_RESCHED | 116 | * TIF_POLLING_NRFLAG - true if poll_idle() is polling TIF_NEED_RESCHED |
118 | */ | 117 | */ |
119 | #define TIF_NOTIFY_RESUME 0 | 118 | #define TIF_SIGPENDING 0 |
120 | #define TIF_SIGPENDING 1 | 119 | #define TIF_NEED_RESCHED 1 |
121 | #define TIF_NEED_RESCHED 2 | ||
122 | #define TIF_SYSCALL_TRACE 8 | 120 | #define TIF_SYSCALL_TRACE 8 |
123 | #define TIF_USED_FPU 16 | 121 | #define TIF_USED_FPU 16 |
124 | #define TIF_POLLING_NRFLAG 17 | 122 | #define TIF_POLLING_NRFLAG 17 |
125 | #define TIF_MEMDIE 18 | 123 | #define TIF_MEMDIE 18 |
126 | 124 | ||
127 | #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) | ||
128 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | 125 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
129 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | 126 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
130 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) | 127 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
diff --git a/include/asm-avr32/thread_info.h b/include/asm-avr32/thread_info.h index a2e606dd4f4a..17dacf3f36d3 100644 --- a/include/asm-avr32/thread_info.h +++ b/include/asm-avr32/thread_info.h | |||
@@ -74,20 +74,18 @@ static inline struct thread_info *current_thread_info(void) | |||
74 | * - other flags in MSW | 74 | * - other flags in MSW |
75 | */ | 75 | */ |
76 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 76 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
77 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 77 | #define TIF_SIGPENDING 1 /* signal pending */ |
78 | #define TIF_SIGPENDING 2 /* signal pending */ | 78 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
79 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 79 | #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling |
80 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling | ||
81 | TIF_NEED_RESCHED */ | 80 | TIF_NEED_RESCHED */ |
82 | #define TIF_BREAKPOINT 5 /* true if we should break after return */ | 81 | #define TIF_BREAKPOINT 4 /* true if we should break after return */ |
83 | #define TIF_SINGLE_STEP 6 /* single step after next break */ | 82 | #define TIF_SINGLE_STEP 5 /* single step after next break */ |
84 | #define TIF_MEMDIE 7 | 83 | #define TIF_MEMDIE 6 |
85 | #define TIF_RESTORE_SIGMASK 8 /* restore signal mask in do_signal */ | 84 | #define TIF_RESTORE_SIGMASK 7 /* restore signal mask in do_signal */ |
86 | #define TIF_CPU_GOING_TO_SLEEP 9 /* CPU is entering sleep 0 mode */ | 85 | #define TIF_CPU_GOING_TO_SLEEP 8 /* CPU is entering sleep 0 mode */ |
87 | #define TIF_USERSPACE 31 /* true if FS sets userspace */ | 86 | #define TIF_USERSPACE 31 /* true if FS sets userspace */ |
88 | 87 | ||
89 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) | 88 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
90 | #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) | ||
91 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | 89 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
92 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | 90 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
93 | #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) | 91 | #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) |
diff --git a/include/asm-blackfin/thread_info.h b/include/asm-blackfin/thread_info.h index 34d3c2eec949..15b99cf4f50b 100644 --- a/include/asm-blackfin/thread_info.h +++ b/include/asm-blackfin/thread_info.h | |||
@@ -118,18 +118,16 @@ static inline struct thread_info *current_thread_info(void) | |||
118 | * thread information flag bit numbers | 118 | * thread information flag bit numbers |
119 | */ | 119 | */ |
120 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 120 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
121 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 121 | #define TIF_SIGPENDING 1 /* signal pending */ |
122 | #define TIF_SIGPENDING 2 /* signal pending */ | 122 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
123 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 123 | #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling |
124 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling | ||
125 | TIF_NEED_RESCHED */ | 124 | TIF_NEED_RESCHED */ |
126 | #define TIF_MEMDIE 5 | 125 | #define TIF_MEMDIE 4 |
127 | #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */ | 126 | #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */ |
128 | #define TIF_FREEZE 7 /* is freezing for suspend */ | 127 | #define TIF_FREEZE 6 /* is freezing for suspend */ |
129 | 128 | ||
130 | /* as above, but as bit values */ | 129 | /* as above, but as bit values */ |
131 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 130 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
132 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
133 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 131 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
134 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 132 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
135 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 133 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
diff --git a/include/asm-cris/thread_info.h b/include/asm-cris/thread_info.h index 7ad853c3f74e..fde39f6c49c7 100644 --- a/include/asm-cris/thread_info.h +++ b/include/asm-cris/thread_info.h | |||
@@ -79,14 +79,12 @@ struct thread_info { | |||
79 | * - other flags in MSW | 79 | * - other flags in MSW |
80 | */ | 80 | */ |
81 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 81 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
82 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 82 | #define TIF_SIGPENDING 1 /* signal pending */ |
83 | #define TIF_SIGPENDING 2 /* signal pending */ | 83 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
84 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | ||
85 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 84 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
86 | #define TIF_MEMDIE 17 | 85 | #define TIF_MEMDIE 17 |
87 | 86 | ||
88 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 87 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
89 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
90 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 88 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
91 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 89 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
92 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 90 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
diff --git a/include/asm-frv/thread_info.h b/include/asm-frv/thread_info.h index d881f518e6a9..cc5433e78b52 100644 --- a/include/asm-frv/thread_info.h +++ b/include/asm-frv/thread_info.h | |||
@@ -108,18 +108,16 @@ register struct thread_info *__current_thread_info asm("gr15"); | |||
108 | * - other flags in MSW | 108 | * - other flags in MSW |
109 | */ | 109 | */ |
110 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 110 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
111 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 111 | #define TIF_SIGPENDING 1 /* signal pending */ |
112 | #define TIF_SIGPENDING 2 /* signal pending */ | 112 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
113 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 113 | #define TIF_SINGLESTEP 3 /* restore singlestep on return to user mode */ |
114 | #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ | 114 | #define TIF_IRET 4 /* return with iret */ |
115 | #define TIF_IRET 5 /* return with iret */ | 115 | #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */ |
116 | #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */ | ||
117 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 116 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
118 | #define TIF_MEMDIE 17 /* OOM killer killed process */ | 117 | #define TIF_MEMDIE 17 /* OOM killer killed process */ |
119 | #define TIF_FREEZE 18 /* freezing for suspend */ | 118 | #define TIF_FREEZE 18 /* freezing for suspend */ |
120 | 119 | ||
121 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) | 120 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
122 | #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) | ||
123 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | 121 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
124 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | 122 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
125 | #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) | 123 | #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) |
diff --git a/include/asm-h8300/thread_info.h b/include/asm-h8300/thread_info.h index aee4009a498e..27bb95e2944c 100644 --- a/include/asm-h8300/thread_info.h +++ b/include/asm-h8300/thread_info.h | |||
@@ -86,17 +86,15 @@ static inline struct thread_info *current_thread_info(void) | |||
86 | * thread information flag bit numbers | 86 | * thread information flag bit numbers |
87 | */ | 87 | */ |
88 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 88 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
89 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 89 | #define TIF_SIGPENDING 1 /* signal pending */ |
90 | #define TIF_SIGPENDING 2 /* signal pending */ | 90 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
91 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 91 | #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling |
92 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling | ||
93 | TIF_NEED_RESCHED */ | 92 | TIF_NEED_RESCHED */ |
94 | #define TIF_MEMDIE 5 | 93 | #define TIF_MEMDIE 4 |
95 | #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */ | 94 | #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */ |
96 | 95 | ||
97 | /* as above, but as bit values */ | 96 | /* as above, but as bit values */ |
98 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 97 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
99 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
100 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 98 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
101 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 99 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
102 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 100 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
diff --git a/include/asm-i386/thread_info.h b/include/asm-i386/thread_info.h index 54424e045e01..22a8cbcd35e2 100644 --- a/include/asm-i386/thread_info.h +++ b/include/asm-i386/thread_info.h | |||
@@ -124,15 +124,14 @@ static inline struct thread_info *current_thread_info(void) | |||
124 | * - other flags in MSW | 124 | * - other flags in MSW |
125 | */ | 125 | */ |
126 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 126 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
127 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 127 | #define TIF_SIGPENDING 1 /* signal pending */ |
128 | #define TIF_SIGPENDING 2 /* signal pending */ | 128 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
129 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 129 | #define TIF_SINGLESTEP 3 /* restore singlestep on return to user mode */ |
130 | #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ | 130 | #define TIF_IRET 4 /* return with iret */ |
131 | #define TIF_IRET 5 /* return with iret */ | 131 | #define TIF_SYSCALL_EMU 5 /* syscall emulation active */ |
132 | #define TIF_SYSCALL_EMU 6 /* syscall emulation active */ | 132 | #define TIF_SYSCALL_AUDIT 6 /* syscall auditing active */ |
133 | #define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */ | 133 | #define TIF_SECCOMP 7 /* secure computing */ |
134 | #define TIF_SECCOMP 8 /* secure computing */ | 134 | #define TIF_RESTORE_SIGMASK 8 /* restore signal mask in do_signal() */ |
135 | #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */ | ||
136 | #define TIF_MEMDIE 16 | 135 | #define TIF_MEMDIE 16 |
137 | #define TIF_DEBUG 17 /* uses debug registers */ | 136 | #define TIF_DEBUG 17 /* uses debug registers */ |
138 | #define TIF_IO_BITMAP 18 /* uses I/O bitmap */ | 137 | #define TIF_IO_BITMAP 18 /* uses I/O bitmap */ |
@@ -140,7 +139,6 @@ static inline struct thread_info *current_thread_info(void) | |||
140 | #define TIF_NOTSC 20 /* TSC is not accessible in userland */ | 139 | #define TIF_NOTSC 20 /* TSC is not accessible in userland */ |
141 | 140 | ||
142 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 141 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
143 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
144 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 142 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
145 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 143 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
146 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) | 144 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) |
diff --git a/include/asm-ia64/thread_info.h b/include/asm-ia64/thread_info.h index 7d0241db622b..d16031e72efa 100644 --- a/include/asm-ia64/thread_info.h +++ b/include/asm-ia64/thread_info.h | |||
@@ -79,13 +79,13 @@ struct thread_info { | |||
79 | * - pending work-to-be-done flags are in least-significant 16 bits, other flags | 79 | * - pending work-to-be-done flags are in least-significant 16 bits, other flags |
80 | * in top 16 bits | 80 | * in top 16 bits |
81 | */ | 81 | */ |
82 | #define TIF_NOTIFY_RESUME 0 /* resumption notification requested */ | 82 | #define TIF_SIGPENDING 0 /* signal pending */ |
83 | #define TIF_SIGPENDING 1 /* signal pending */ | 83 | #define TIF_NEED_RESCHED 1 /* rescheduling necessary */ |
84 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ | 84 | #define TIF_SYSCALL_TRACE 2 /* syscall trace active */ |
85 | #define TIF_SYSCALL_TRACE 3 /* syscall trace active */ | 85 | #define TIF_SYSCALL_AUDIT 3 /* syscall auditing active */ |
86 | #define TIF_SYSCALL_AUDIT 4 /* syscall auditing active */ | 86 | #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ |
87 | #define TIF_SINGLESTEP 5 /* restore singlestep on return to user mode */ | 87 | #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */ |
88 | #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */ | 88 | #define TIF_PERFMON_WORK 6 /* work for pfm_handle_work() */ |
89 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 89 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
90 | #define TIF_MEMDIE 17 | 90 | #define TIF_MEMDIE 17 |
91 | #define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */ | 91 | #define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */ |
@@ -96,8 +96,8 @@ struct thread_info { | |||
96 | #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) | 96 | #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) |
97 | #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) | 97 | #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) |
98 | #define _TIF_SYSCALL_TRACEAUDIT (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP) | 98 | #define _TIF_SYSCALL_TRACEAUDIT (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP) |
99 | #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) | ||
100 | #define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) | 99 | #define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) |
100 | #define _TIF_PERFMON_WORK (1 << TIF_PERFMON_WORK) | ||
101 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | 101 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
102 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | 102 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
103 | #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) | 103 | #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) |
@@ -106,7 +106,9 @@ struct thread_info { | |||
106 | #define _TIF_FREEZE (1 << TIF_FREEZE) | 106 | #define _TIF_FREEZE (1 << TIF_FREEZE) |
107 | 107 | ||
108 | /* "work to do on user-return" bits */ | 108 | /* "work to do on user-return" bits */ |
109 | #define TIF_ALLWORK_MASK (_TIF_NOTIFY_RESUME|_TIF_SIGPENDING|_TIF_NEED_RESCHED|_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_RESTORE_SIGMASK) | 109 | #define TIF_ALLWORK_MASK (_TIF_SIGPENDING|_TIF_PERFMON_WORK|_TIF_SYSCALL_AUDIT|\ |
110 | _TIF_NEED_RESCHED| _TIF_SYSCALL_TRACE|\ | ||
111 | _TIF_RESTORE_SIGMASK) | ||
110 | /* like TIF_ALLWORK_BITS but sans TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT */ | 112 | /* like TIF_ALLWORK_BITS but sans TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT */ |
111 | #define TIF_WORK_MASK (TIF_ALLWORK_MASK&~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT)) | 113 | #define TIF_WORK_MASK (TIF_ALLWORK_MASK&~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT)) |
112 | 114 | ||
diff --git a/include/asm-m32r/thread_info.h b/include/asm-m32r/thread_info.h index 22aff3222d22..b7ccc3e68604 100644 --- a/include/asm-m32r/thread_info.h +++ b/include/asm-m32r/thread_info.h | |||
@@ -146,17 +146,15 @@ static inline unsigned int get_thread_fault_code(void) | |||
146 | * - other flags in MSW | 146 | * - other flags in MSW |
147 | */ | 147 | */ |
148 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 148 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
149 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 149 | #define TIF_SIGPENDING 1 /* signal pending */ |
150 | #define TIF_SIGPENDING 2 /* signal pending */ | 150 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
151 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 151 | #define TIF_SINGLESTEP 3 /* restore singlestep on return to user mode */ |
152 | #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ | 152 | #define TIF_IRET 4 /* return with iret */ |
153 | #define TIF_IRET 5 /* return with iret */ | ||
154 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 153 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
155 | /* 31..28 fault code */ | 154 | /* 31..28 fault code */ |
156 | #define TIF_MEMDIE 17 | 155 | #define TIF_MEMDIE 17 |
157 | 156 | ||
158 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 157 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
159 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
160 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 158 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
161 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 159 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
162 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) | 160 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) |
diff --git a/include/asm-m68knommu/thread_info.h b/include/asm-m68knommu/thread_info.h index b8f009edf2b2..95996d978bed 100644 --- a/include/asm-m68knommu/thread_info.h +++ b/include/asm-m68knommu/thread_info.h | |||
@@ -83,16 +83,14 @@ static inline struct thread_info *current_thread_info(void) | |||
83 | * thread information flag bit numbers | 83 | * thread information flag bit numbers |
84 | */ | 84 | */ |
85 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 85 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
86 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 86 | #define TIF_SIGPENDING 1 /* signal pending */ |
87 | #define TIF_SIGPENDING 2 /* signal pending */ | 87 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
88 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 88 | #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling |
89 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling | ||
90 | TIF_NEED_RESCHED */ | 89 | TIF_NEED_RESCHED */ |
91 | #define TIF_MEMDIE 5 | 90 | #define TIF_MEMDIE 4 |
92 | 91 | ||
93 | /* as above, but as bit values */ | 92 | /* as above, but as bit values */ |
94 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 93 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
95 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
96 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 94 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
97 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 95 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
98 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 96 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
diff --git a/include/asm-mips/thread_info.h b/include/asm-mips/thread_info.h index fbcda8204473..645e7e2a5665 100644 --- a/include/asm-mips/thread_info.h +++ b/include/asm-mips/thread_info.h | |||
@@ -109,11 +109,10 @@ register struct thread_info *__current_thread_info __asm__("$28"); | |||
109 | * - pending work-to-be-done flags are in LSW | 109 | * - pending work-to-be-done flags are in LSW |
110 | * - other flags in MSW | 110 | * - other flags in MSW |
111 | */ | 111 | */ |
112 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 112 | #define TIF_SIGPENDING 1 /* signal pending */ |
113 | #define TIF_SIGPENDING 2 /* signal pending */ | 113 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
114 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 114 | #define TIF_SYSCALL_AUDIT 3 /* syscall auditing active */ |
115 | #define TIF_SYSCALL_AUDIT 4 /* syscall auditing active */ | 115 | #define TIF_SECCOMP 4 /* secure computing */ |
116 | #define TIF_SECCOMP 5 /* secure computing */ | ||
117 | #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */ | 116 | #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */ |
118 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ | 117 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ |
119 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 118 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
@@ -122,7 +121,6 @@ register struct thread_info *__current_thread_info __asm__("$28"); | |||
122 | #define TIF_SYSCALL_TRACE 31 /* syscall trace active */ | 121 | #define TIF_SYSCALL_TRACE 31 /* syscall trace active */ |
123 | 122 | ||
124 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 123 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
125 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
126 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 124 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
127 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 125 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
128 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) | 126 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) |
diff --git a/include/asm-parisc/thread_info.h b/include/asm-parisc/thread_info.h index 949314cf6188..2d9c7500867b 100644 --- a/include/asm-parisc/thread_info.h +++ b/include/asm-parisc/thread_info.h | |||
@@ -56,23 +56,21 @@ struct thread_info { | |||
56 | * thread information flags | 56 | * thread information flags |
57 | */ | 57 | */ |
58 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 58 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
59 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 59 | #define TIF_SIGPENDING 1 /* signal pending */ |
60 | #define TIF_SIGPENDING 2 /* signal pending */ | 60 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
61 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 61 | #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
62 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 62 | #define TIF_32BIT 4 /* 32 bit binary */ |
63 | #define TIF_32BIT 5 /* 32 bit binary */ | 63 | #define TIF_MEMDIE 5 |
64 | #define TIF_MEMDIE 6 | 64 | #define TIF_RESTORE_SIGMASK 6 /* restore saved signal mask */ |
65 | #define TIF_RESTORE_SIGMASK 7 /* restore saved signal mask */ | ||
66 | 65 | ||
67 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) | 66 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
68 | #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) | ||
69 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | 67 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
70 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | 68 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
71 | #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) | 69 | #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) |
72 | #define _TIF_32BIT (1 << TIF_32BIT) | 70 | #define _TIF_32BIT (1 << TIF_32BIT) |
73 | #define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) | 71 | #define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) |
74 | 72 | ||
75 | #define _TIF_USER_WORK_MASK (_TIF_NOTIFY_RESUME | _TIF_SIGPENDING | \ | 73 | #define _TIF_USER_WORK_MASK (_TIF_SIGPENDING | \ |
76 | _TIF_NEED_RESCHED | _TIF_RESTORE_SIGMASK) | 74 | _TIF_NEED_RESCHED | _TIF_RESTORE_SIGMASK) |
77 | 75 | ||
78 | #endif /* __KERNEL__ */ | 76 | #endif /* __KERNEL__ */ |
diff --git a/include/asm-powerpc/thread_info.h b/include/asm-powerpc/thread_info.h index 9d9aeca8ad22..40d5f98c44fc 100644 --- a/include/asm-powerpc/thread_info.h +++ b/include/asm-powerpc/thread_info.h | |||
@@ -107,28 +107,26 @@ static inline struct thread_info *current_thread_info(void) | |||
107 | * thread information flag bit numbers | 107 | * thread information flag bit numbers |
108 | */ | 108 | */ |
109 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 109 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
110 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 110 | #define TIF_SIGPENDING 1 /* signal pending */ |
111 | #define TIF_SIGPENDING 2 /* signal pending */ | 111 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
112 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 112 | #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling |
113 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling | ||
114 | TIF_NEED_RESCHED */ | 113 | TIF_NEED_RESCHED */ |
115 | #define TIF_32BIT 5 /* 32 bit binary */ | 114 | #define TIF_32BIT 4 /* 32 bit binary */ |
116 | #define TIF_PERFMON_WORK 6 /* work for pfm_handle_work() */ | 115 | #define TIF_PERFMON_WORK 5 /* work for pfm_handle_work() */ |
117 | #define TIF_PERFMON_CTXSW 7 /* perfmon needs ctxsw calls */ | 116 | #define TIF_PERFMON_CTXSW 6 /* perfmon needs ctxsw calls */ |
118 | #define TIF_SYSCALL_AUDIT 8 /* syscall auditing active */ | 117 | #define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */ |
119 | #define TIF_SINGLESTEP 9 /* singlestepping active */ | 118 | #define TIF_SINGLESTEP 8 /* singlestepping active */ |
120 | #define TIF_MEMDIE 10 | 119 | #define TIF_MEMDIE 9 |
121 | #define TIF_SECCOMP 11 /* secure computing */ | 120 | #define TIF_SECCOMP 10 /* secure computing */ |
122 | #define TIF_RESTOREALL 12 /* Restore all regs (implies NOERROR) */ | 121 | #define TIF_RESTOREALL 11 /* Restore all regs (implies NOERROR) */ |
123 | #define TIF_NOERROR 14 /* Force successful syscall return */ | 122 | #define TIF_NOERROR 12 /* Force successful syscall return */ |
124 | #define TIF_RESTORE_SIGMASK 15 /* Restore signal mask in do_signal */ | 123 | #define TIF_RESTORE_SIGMASK 13 /* Restore signal mask in do_signal */ |
125 | #define TIF_FREEZE 16 /* Freezing for suspend */ | 124 | #define TIF_FREEZE 14 /* Freezing for suspend */ |
126 | #define TIF_RUNLATCH 17 /* Is the runlatch enabled? */ | 125 | #define TIF_RUNLATCH 15 /* Is the runlatch enabled? */ |
127 | #define TIF_ABI_PENDING 18 /* 32/64 bit switch needed */ | 126 | #define TIF_ABI_PENDING 16 /* 32/64 bit switch needed */ |
128 | 127 | ||
129 | /* as above, but as bit values */ | 128 | /* as above, but as bit values */ |
130 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 129 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
131 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
132 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 130 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
133 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 131 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
134 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 132 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
@@ -146,7 +144,7 @@ static inline struct thread_info *current_thread_info(void) | |||
146 | #define _TIF_ABI_PENDING (1<<TIF_ABI_PENDING) | 144 | #define _TIF_ABI_PENDING (1<<TIF_ABI_PENDING) |
147 | #define _TIF_SYSCALL_T_OR_A (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP) | 145 | #define _TIF_SYSCALL_T_OR_A (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP) |
148 | 146 | ||
149 | #define _TIF_USER_WORK_MASK (_TIF_NOTIFY_RESUME | _TIF_SIGPENDING | \ | 147 | #define _TIF_USER_WORK_MASK ( _TIF_SIGPENDING | \ |
150 | _TIF_NEED_RESCHED | _TIF_RESTORE_SIGMASK) | 148 | _TIF_NEED_RESCHED | _TIF_RESTORE_SIGMASK) |
151 | #define _TIF_PERSYSCALL_MASK (_TIF_RESTOREALL|_TIF_NOERROR) | 149 | #define _TIF_PERSYSCALL_MASK (_TIF_RESTOREALL|_TIF_NOERROR) |
152 | 150 | ||
diff --git a/include/asm-sh/thread_info.h b/include/asm-sh/thread_info.h index 31d55e3782d5..1f7e1deb8d92 100644 --- a/include/asm-sh/thread_info.h +++ b/include/asm-sh/thread_info.h | |||
@@ -107,18 +107,16 @@ static inline struct thread_info *current_thread_info(void) | |||
107 | * - other flags in MSW | 107 | * - other flags in MSW |
108 | */ | 108 | */ |
109 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 109 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
110 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 110 | #define TIF_SIGPENDING 1 /* signal pending */ |
111 | #define TIF_SIGPENDING 2 /* signal pending */ | 111 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
112 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 112 | #define TIF_RESTORE_SIGMASK 3 /* restore signal mask in do_signal() */ |
113 | #define TIF_RESTORE_SIGMASK 4 /* restore signal mask in do_signal() */ | 113 | #define TIF_SINGLESTEP 4 /* singlestepping active */ |
114 | #define TIF_SINGLESTEP 5 /* singlestepping active */ | ||
115 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ | 114 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ |
116 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 115 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
117 | #define TIF_MEMDIE 18 | 116 | #define TIF_MEMDIE 18 |
118 | #define TIF_FREEZE 19 | 117 | #define TIF_FREEZE 19 |
119 | 118 | ||
120 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 119 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
121 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
122 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 120 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
123 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 121 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
124 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) | 122 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) |
diff --git a/include/asm-v850/thread_info.h b/include/asm-v850/thread_info.h index 82b8f2846207..1a9e6ae0c5fd 100644 --- a/include/asm-v850/thread_info.h +++ b/include/asm-v850/thread_info.h | |||
@@ -77,16 +77,14 @@ struct thread_info { | |||
77 | * thread information flag bit numbers | 77 | * thread information flag bit numbers |
78 | */ | 78 | */ |
79 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 79 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
80 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 80 | #define TIF_SIGPENDING 1 /* signal pending */ |
81 | #define TIF_SIGPENDING 2 /* signal pending */ | 81 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
82 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 82 | #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling |
83 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling | ||
84 | TIF_NEED_RESCHED */ | 83 | TIF_NEED_RESCHED */ |
85 | #define TIF_MEMDIE 5 | 84 | #define TIF_MEMDIE 4 |
86 | 85 | ||
87 | /* as above, but as bit values */ | 86 | /* as above, but as bit values */ |
88 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 87 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
89 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
90 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 88 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
91 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 89 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
92 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 90 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
diff --git a/include/asm-x86_64/thread_info.h b/include/asm-x86_64/thread_info.h index 33c72ef15a0c..beae2bfb62ca 100644 --- a/include/asm-x86_64/thread_info.h +++ b/include/asm-x86_64/thread_info.h | |||
@@ -107,7 +107,6 @@ static inline struct thread_info *stack_thread_info(void) | |||
107 | * Warning: layout of LSW is hardcoded in entry.S | 107 | * Warning: layout of LSW is hardcoded in entry.S |
108 | */ | 108 | */ |
109 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 109 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
110 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | ||
111 | #define TIF_SIGPENDING 2 /* signal pending */ | 110 | #define TIF_SIGPENDING 2 /* signal pending */ |
112 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 111 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ |
113 | #define TIF_SINGLESTEP 4 /* reenable singlestep on user return*/ | 112 | #define TIF_SINGLESTEP 4 /* reenable singlestep on user return*/ |
@@ -126,7 +125,6 @@ static inline struct thread_info *stack_thread_info(void) | |||
126 | #define TIF_FREEZE 23 /* is freezing for suspend */ | 125 | #define TIF_FREEZE 23 /* is freezing for suspend */ |
127 | 126 | ||
128 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 127 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
129 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
130 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 128 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
131 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) | 129 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) |
132 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 130 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
diff --git a/include/asm-xtensa/thread_info.h b/include/asm-xtensa/thread_info.h index 3fa29799b435..52c958285bcb 100644 --- a/include/asm-xtensa/thread_info.h +++ b/include/asm-xtensa/thread_info.h | |||
@@ -110,17 +110,15 @@ static inline struct thread_info *current_thread_info(void) | |||
110 | * - other flags in MSW | 110 | * - other flags in MSW |
111 | */ | 111 | */ |
112 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 112 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
113 | #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ | 113 | #define TIF_SIGPENDING 1 /* signal pending */ |
114 | #define TIF_SIGPENDING 2 /* signal pending */ | 114 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
115 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 115 | #define TIF_SINGLESTEP 3 /* restore singlestep on return to user mode */ |
116 | #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ | 116 | #define TIF_IRET 4 /* return with iret */ |
117 | #define TIF_IRET 5 /* return with iret */ | 117 | #define TIF_MEMDIE 5 |
118 | #define TIF_MEMDIE 6 | 118 | #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */ |
119 | #define TIF_RESTORE_SIGMASK 7 /* restore signal mask in do_signal() */ | ||
120 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 119 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
121 | 120 | ||
122 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 121 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
123 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
124 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 122 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
125 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 123 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
126 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) | 124 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) |