Skip to content

Commit 9963e44

Browse files
author
Peter Zijlstra
committed
sched: Widen TAKS_state literals
In preparation of adding more states, add a few 0s to the literals as we've just about ran out. Suggested-by: Ingo Molnar <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
1 parent 3f884a1 commit 9963e44

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

include/linux/sched.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,25 @@ struct task_group;
8181
*/
8282

8383
/* Used in tsk->state: */
84-
#define TASK_RUNNING 0x0000
85-
#define TASK_INTERRUPTIBLE 0x0001
86-
#define TASK_UNINTERRUPTIBLE 0x0002
87-
#define __TASK_STOPPED 0x0004
88-
#define __TASK_TRACED 0x0008
84+
#define TASK_RUNNING 0x00000000
85+
#define TASK_INTERRUPTIBLE 0x00000001
86+
#define TASK_UNINTERRUPTIBLE 0x00000002
87+
#define __TASK_STOPPED 0x00000004
88+
#define __TASK_TRACED 0x00000008
8989
/* Used in tsk->exit_state: */
90-
#define EXIT_DEAD 0x0010
91-
#define EXIT_ZOMBIE 0x0020
90+
#define EXIT_DEAD 0x00000010
91+
#define EXIT_ZOMBIE 0x00000020
9292
#define EXIT_TRACE (EXIT_ZOMBIE | EXIT_DEAD)
9393
/* Used in tsk->state again: */
94-
#define TASK_PARKED 0x0040
95-
#define TASK_DEAD 0x0080
96-
#define TASK_WAKEKILL 0x0100
97-
#define TASK_WAKING 0x0200
98-
#define TASK_NOLOAD 0x0400
99-
#define TASK_NEW 0x0800
94+
#define TASK_PARKED 0x00000040
95+
#define TASK_DEAD 0x00000080
96+
#define TASK_WAKEKILL 0x00000100
97+
#define TASK_WAKING 0x00000200
98+
#define TASK_NOLOAD 0x00000400
99+
#define TASK_NEW 0x00000800
100100
/* RT specific auxilliary flag to mark RT lock waiters */
101-
#define TASK_RTLOCK_WAIT 0x1000
102-
#define TASK_STATE_MAX 0x2000
101+
#define TASK_RTLOCK_WAIT 0x00001000
102+
#define TASK_STATE_MAX 0x00002000
103103

104104
#define TASK_ANY (TASK_STATE_MAX-1)
105105

0 commit comments

Comments
 (0)