File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,9 @@ struct user_event_mm;
149
149
* Special states are those that do not use the normal wait-loop pattern. See
150
150
* the comment with set_special_state().
151
151
*/
152
- #define is_special_task_state (state ) \
153
- ((state) & (__TASK_STOPPED | __TASK_TRACED | TASK_PARKED | TASK_DEAD))
152
+ #define is_special_task_state (state ) \
153
+ ((state) & (__TASK_STOPPED | __TASK_TRACED | TASK_PARKED | \
154
+ TASK_DEAD | TASK_FROZEN))
154
155
155
156
#ifdef CONFIG_DEBUG_ATOMIC_SLEEP
156
157
# define debug_normal_state_change (state_value ) \
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ bool __refrigerator(bool check_kthr_stop)
72
72
bool freeze ;
73
73
74
74
raw_spin_lock_irq (& current -> pi_lock );
75
- set_current_state ( TASK_FROZEN );
75
+ WRITE_ONCE ( current -> __state , TASK_FROZEN );
76
76
/* unstale saved_state so that __thaw_task() will wake us up */
77
77
current -> saved_state = TASK_RUNNING ;
78
78
raw_spin_unlock_irq (& current -> pi_lock );
You can’t perform that action at this time.
0 commit comments