Commit 0ddc9324b1a842afd77e8e86698b1d1d2ffed022

Authored by Andreas Dilger
Committed by Jiri Kosina
1 parent 6858d49833

add descriptive comment for TIF_MEMDIE task flag declaration.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

Showing 24 changed files with 26 additions and 27 deletions Side-by-side Diff

arch/alpha/include/asm/thread_info.h
... ... @@ -77,7 +77,7 @@
77 77 #define TIF_UAC_NOPRINT 10 /* see sysinfo.h */
78 78 #define TIF_UAC_NOFIX 11
79 79 #define TIF_UAC_SIGBUS 12
80   -#define TIF_MEMDIE 13
  80 +#define TIF_MEMDIE 13 /* is terminating due to OOM killer */
81 81 #define TIF_RESTORE_SIGMASK 14 /* restore signal mask in do_signal */
82 82 #define TIF_FREEZE 16 /* is freezing for suspend */
83 83  
arch/arm/include/asm/thread_info.h
... ... @@ -141,7 +141,7 @@
141 141 #define TIF_SYSCALL_TRACE 8
142 142 #define TIF_POLLING_NRFLAG 16
143 143 #define TIF_USING_IWMMXT 17
144   -#define TIF_MEMDIE 18
  144 +#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
145 145 #define TIF_FREEZE 19
146 146 #define TIF_RESTORE_SIGMASK 20
147 147  
arch/avr32/include/asm/thread_info.h
... ... @@ -81,7 +81,7 @@
81 81 TIF_NEED_RESCHED */
82 82 #define TIF_BREAKPOINT 4 /* enter monitor mode on return */
83 83 #define TIF_SINGLE_STEP 5 /* single step in progress */
84   -#define TIF_MEMDIE 6
  84 +#define TIF_MEMDIE 6 /* is terminating due to OOM killer */
85 85 #define TIF_RESTORE_SIGMASK 7 /* restore signal mask in do_signal */
86 86 #define TIF_CPU_GOING_TO_SLEEP 8 /* CPU is entering sleep 0 mode */
87 87 #define TIF_NOTIFY_RESUME 9 /* callback before returning to user */
arch/blackfin/include/asm/thread_info.h
... ... @@ -98,7 +98,7 @@
98 98 #define TIF_NEED_RESCHED 2 /* rescheduling necessary */
99 99 #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling
100 100 TIF_NEED_RESCHED */
101   -#define TIF_MEMDIE 4
  101 +#define TIF_MEMDIE 4 /* is terminating due to OOM killer */
102 102 #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */
103 103 #define TIF_FREEZE 6 /* is freezing for suspend */
104 104 #define TIF_IRQ_SYNC 7 /* sync pipeline stage */
arch/cris/include/asm/thread_info.h
... ... @@ -85,7 +85,7 @@
85 85 #define TIF_NEED_RESCHED 3 /* rescheduling necessary */
86 86 #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */
87 87 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */
88   -#define TIF_MEMDIE 17
  88 +#define TIF_MEMDIE 17 /* is terminating due to OOM killer */
89 89 #define TIF_FREEZE 18 /* is freezing for suspend */
90 90  
91 91 #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
arch/frv/include/asm/thread_info.h
... ... @@ -113,7 +113,7 @@
113 113 #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */
114 114 #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */
115 115 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */
116   -#define TIF_MEMDIE 17 /* OOM killer killed process */
  116 +#define TIF_MEMDIE 17 /* is terminating due to OOM killer */
117 117 #define TIF_FREEZE 18 /* freezing for suspend */
118 118  
119 119 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
arch/h8300/include/asm/thread_info.h
... ... @@ -87,7 +87,7 @@
87 87 #define TIF_NEED_RESCHED 2 /* rescheduling necessary */
88 88 #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling
89 89 TIF_NEED_RESCHED */
90   -#define TIF_MEMDIE 4
  90 +#define TIF_MEMDIE 4 /* is terminating due to OOM killer */
91 91 #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */
92 92 #define TIF_NOTIFY_RESUME 6 /* callback before returning to user */
93 93 #define TIF_FREEZE 16 /* is freezing for suspend */
arch/ia64/include/asm/thread_info.h
... ... @@ -102,7 +102,7 @@
102 102 #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */
103 103 #define TIF_NOTIFY_RESUME 6 /* resumption notification requested */
104 104 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */
105   -#define TIF_MEMDIE 17
  105 +#define TIF_MEMDIE 17 /* is terminating due to OOM killer */
106 106 #define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */
107 107 #define TIF_DB_DISABLED 19 /* debug trap disabled for fsyscall */
108 108 #define TIF_FREEZE 20 /* is freezing for suspend */
arch/m32r/include/asm/thread_info.h
... ... @@ -142,7 +142,7 @@
142 142 #define TIF_RESTORE_SIGMASK 8 /* restore signal mask in do_signal() */
143 143 #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */
144 144 #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */
145   -#define TIF_MEMDIE 18 /* OOM killer killed process */
  145 +#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
146 146 #define TIF_FREEZE 19 /* is freezing for suspend */
147 147  
148 148 #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
arch/m68k/include/asm/thread_info_mm.h
... ... @@ -65,7 +65,7 @@
65 65 #define TIF_NEED_RESCHED 7 /* rescheduling necessary */
66 66 #define TIF_DELAYED_TRACE 14 /* single step a syscall */
67 67 #define TIF_SYSCALL_TRACE 15 /* syscall trace active */
68   -#define TIF_MEMDIE 16
  68 +#define TIF_MEMDIE 16 /* is terminating due to OOM killer */
69 69 #define TIF_FREEZE 17 /* thread is freezing for suspend */
70 70  
71 71 #endif /* _ASM_M68K_THREAD_INFO_H */
arch/m68k/include/asm/thread_info_no.h
... ... @@ -85,7 +85,7 @@
85 85 #define TIF_NEED_RESCHED 2 /* rescheduling necessary */
86 86 #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling
87 87 TIF_NEED_RESCHED */
88   -#define TIF_MEMDIE 4
  88 +#define TIF_MEMDIE 4 /* is terminating due to OOM killer */
89 89 #define TIF_FREEZE 16 /* is freezing for suspend */
90 90  
91 91 /* as above, but as bit values */
arch/microblaze/include/asm/thread_info.h
... ... @@ -122,7 +122,7 @@
122 122 /* restore singlestep on return to user mode */
123 123 #define TIF_SINGLESTEP 4
124 124 #define TIF_IRET 5 /* return with iret */
125   -#define TIF_MEMDIE 6
  125 +#define TIF_MEMDIE 6 /* is terminating due to OOM killer */
126 126 #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */
127 127 #define TIF_SECCOMP 10 /* secure computing */
128 128 #define TIF_FREEZE 14 /* Freezing for suspend */
arch/mips/include/asm/thread_info.h
... ... @@ -112,7 +112,7 @@
112 112 #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */
113 113 #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */
114 114 #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */
115   -#define TIF_MEMDIE 18
  115 +#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
116 116 #define TIF_FREEZE 19
117 117 #define TIF_FIXADE 20 /* Fix address errors in software */
118 118 #define TIF_LOGADE 21 /* Log address errors to syslog */
arch/mn10300/include/asm/thread_info.h
... ... @@ -148,7 +148,7 @@
148 148 #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */
149 149 #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */
150 150 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */
151   -#define TIF_MEMDIE 17 /* OOM killer killed process */
  151 +#define TIF_MEMDIE 17 /* is terminating due to OOM killer */
152 152 #define TIF_FREEZE 18 /* freezing for suspend */
153 153  
154 154 #define _TIF_SYSCALL_TRACE +(1 << TIF_SYSCALL_TRACE)
arch/parisc/include/asm/thread_info.h
... ... @@ -56,7 +56,7 @@
56 56 #define TIF_NEED_RESCHED 2 /* rescheduling necessary */
57 57 #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling TIF_NEED_RESCHED */
58 58 #define TIF_32BIT 4 /* 32 bit binary */
59   -#define TIF_MEMDIE 5
  59 +#define TIF_MEMDIE 5 /* is terminating due to OOM killer */
60 60 #define TIF_RESTORE_SIGMASK 6 /* restore saved signal mask */
61 61 #define TIF_FREEZE 7 /* is freezing for suspend */
62 62 #define TIF_NOTIFY_RESUME 8 /* callback before returning to user */
arch/powerpc/include/asm/thread_info.h
... ... @@ -104,7 +104,7 @@
104 104 #define TIF_PERFMON_CTXSW 6 /* perfmon needs ctxsw calls */
105 105 #define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */
106 106 #define TIF_SINGLESTEP 8 /* singlestepping active */
107   -#define TIF_MEMDIE 9
  107 +#define TIF_MEMDIE 9 /* is terminating due to OOM killer */
108 108 #define TIF_SECCOMP 10 /* secure computing */
109 109 #define TIF_RESTOREALL 11 /* Restore all regs (implies NOERROR) */
110 110 #define TIF_NOERROR 12 /* Force successful syscall return */
arch/s390/include/asm/thread_info.h
... ... @@ -96,7 +96,7 @@
96 96 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling
97 97 TIF_NEED_RESCHED */
98 98 #define TIF_31BIT 17 /* 32bit process */
99   -#define TIF_MEMDIE 18
  99 +#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
100 100 #define TIF_RESTORE_SIGMASK 19 /* restore signal mask in do_signal() */
101 101 #define TIF_FREEZE 20 /* thread is freezing for suspend */
102 102  
arch/score/include/asm/thread_info.h
... ... @@ -92,7 +92,7 @@
92 92 #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */
93 93 #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling
94 94 TIF_NEED_RESCHED */
95   -#define TIF_MEMDIE 18
  95 +#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
96 96  
97 97 #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
98 98 #define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
arch/sh/include/asm/thread_info.h
... ... @@ -121,7 +121,7 @@
121 121 #define TIF_NOTIFY_RESUME 7 /* callback before returning to user */
122 122 #define TIF_SYSCALL_TRACEPOINT 8 /* for ftrace syscall instrumentation */
123 123 #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */
124   -#define TIF_MEMDIE 18
  124 +#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
125 125 #define TIF_FREEZE 19 /* Freezing for suspend */
126 126  
127 127 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
arch/sparc/include/asm/thread_info_32.h
... ... @@ -132,7 +132,7 @@
132 132 * this quantum (SMP) */
133 133 #define TIF_POLLING_NRFLAG 9 /* true if poll_idle() is polling
134 134 * TIF_NEED_RESCHED */
135   -#define TIF_MEMDIE 10
  135 +#define TIF_MEMDIE 10 /* is terminating due to OOM killer */
136 136 #define TIF_FREEZE 11 /* is freezing for suspend */
137 137  
138 138 /* as above, but as bit values */
arch/sparc/include/asm/thread_info_64.h
... ... @@ -223,7 +223,7 @@
223 223 * an immediate value in instructions such as andcc.
224 224 */
225 225 /* flag bit 12 is available */
226   -#define TIF_MEMDIE 13
  226 +#define TIF_MEMDIE 13 /* is terminating due to OOM killer */
227 227 #define TIF_POLLING_NRFLAG 14
228 228 #define TIF_FREEZE 15 /* is freezing for suspend */
229 229  
arch/um/include/asm/thread_info.h
... ... @@ -63,10 +63,9 @@
63 63 #define TIF_SIGPENDING 1 /* signal pending */
64 64 #define TIF_NEED_RESCHED 2 /* rescheduling necessary */
65 65 #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling
66   - * TIF_NEED_RESCHED
67   - */
68   -#define TIF_RESTART_BLOCK 4
69   -#define TIF_MEMDIE 5
  66 + * TIF_NEED_RESCHED */
  67 +#define TIF_RESTART_BLOCK 4
  68 +#define TIF_MEMDIE 5 /* is terminating due to OOM killer */
70 69 #define TIF_SYSCALL_AUDIT 6
71 70 #define TIF_RESTORE_SIGMASK 7
72 71 #define TIF_FREEZE 16 /* is freezing for suspend */
arch/x86/include/asm/thread_info.h
... ... @@ -87,7 +87,7 @@
87 87 #define TIF_NOTSC 16 /* TSC is not accessible in userland */
88 88 #define TIF_IA32 17 /* 32bit process */
89 89 #define TIF_FORK 18 /* ret_from_fork */
90   -#define TIF_MEMDIE 20
  90 +#define TIF_MEMDIE 20 /* is terminating due to OOM killer */
91 91 #define TIF_DEBUG 21 /* uses debug registers */
92 92 #define TIF_IO_BITMAP 22 /* uses I/O bitmap */
93 93 #define TIF_FREEZE 23 /* is freezing for suspend */
arch/xtensa/include/asm/thread_info.h
... ... @@ -129,7 +129,7 @@
129 129 #define TIF_NEED_RESCHED 2 /* rescheduling necessary */
130 130 #define TIF_SINGLESTEP 3 /* restore singlestep on return to user mode */
131 131 #define TIF_IRET 4 /* return with iret */
132   -#define TIF_MEMDIE 5
  132 +#define TIF_MEMDIE 5 /* is terminating due to OOM killer */
133 133 #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */
134 134 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */
135 135 #define TIF_FREEZE 17 /* is freezing for suspend */