diff options
author | Peter Zijlstra <peterz@infradead.org> | 2024-07-01 22:30:09 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-08-17 12:06:44 +0300 |
commit | a1c446611e31ca5363d4db51e398271da1dce0af (patch) | |
tree | 0d688aaf264bdf8f5f7bc5535abff29d8fb26adc /include/linux | |
parent | 781773e3b68031bd001c0c18aa72e8470c225ebd (diff) | |
download | linux-a1c446611e31ca5363d4db51e398271da1dce0af.tar.xz |
sched,freezer: Mark TASK_FROZEN special
The special task states are those that do not suffer spurious wakeups,
TASK_FROZEN is very much one of those, mark it as such.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Tested-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lkml.kernel.org/r/20240727105029.998329901@infradead.org
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index f4a648e739e1..8a3a389bd623 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -149,8 +149,9 @@ struct user_event_mm; * Special states are those that do not use the normal wait-loop pattern. See * the comment with set_special_state(). */ -#define is_special_task_state(state) \ - ((state) & (__TASK_STOPPED | __TASK_TRACED | TASK_PARKED | TASK_DEAD)) +#define is_special_task_state(state) \ + ((state) & (__TASK_STOPPED | __TASK_TRACED | TASK_PARKED | \ + TASK_DEAD | TASK_FROZEN)) #ifdef CONFIG_DEBUG_ATOMIC_SLEEP # define debug_normal_state_change(state_value) \ |