Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 600642a

Browse files
author
Peter Zijlstra
committed
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) <[email protected]> Reviewed-by: Davidlohr Bueso <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d6c23bb commit 600642a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ signed long __sched schedule_timeout(signed long timeout)
18791879
printk(KERN_ERR "schedule_timeout: wrong timeout "
18801880
"value %lx\n", timeout);
18811881
dump_stack();
1882-
current->state = TASK_RUNNING;
1882+
__set_current_state(TASK_RUNNING);
18831883
goto out;
18841884
}
18851885
}

0 commit comments

Comments
 (0)