diff options
author | Peter Zijlstra | 2021-06-11 10:28:15 +0200 |
---|---|---|
committer | Peter Zijlstra | 2021-06-18 11:43:08 +0200 |
commit | 600642ae9050a872055119ba09d0decc43f6c843 (patch) | |
tree | 6fc7c54a97c0d1f18329e8b320a652713f597ba6 /kernel/time | |
parent | d6c23bb3a2ad2f8f7dd46292b8bc54d27f2fb3f1 (diff) |
sched,timer: Use __set_current_state()
There's an existing helper for setting TASK_RUNNING; must've gotten
lost last time we did this cleanup.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Davidlohr Bueso <dbueso@suse.de>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210611082838.409696194@infradead.org
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c index d111adf4a0cb..467087d7bdb6 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1879,7 +1879,7 @@ signed long __sched schedule_timeout(signed long timeout) printk(KERN_ERR "schedule_timeout: wrong timeout " "value %lx\n", timeout); dump_stack(); - current->state = TASK_RUNNING; + __set_current_state(TASK_RUNNING); goto out; } } |