[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <162401544278.19906.13862118615539886875.tip-bot2@tip-bot2>
Date: Fri, 18 Jun 2021 11:24:02 -0000
From: "tip-bot2 for Peter Zijlstra" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>,
Davidlohr Bueso <dbueso@...e.de>,
Will Deacon <will@...nel.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: sched/core] sched,timer: Use __set_current_state()
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 600642ae9050a872055119ba09d0decc43f6c843
Gitweb: https://git.kernel.org/tip/600642ae9050a872055119ba09d0decc43f6c843
Author: Peter Zijlstra <peterz@...radead.org>
AuthorDate: Fri, 11 Jun 2021 10:28:15 +02:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Fri, 18 Jun 2021 11:43:08 +02:00
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@...radead.org>
Reviewed-by: Davidlohr Bueso <dbueso@...e.de>
Acked-by: Will Deacon <will@...nel.org>
Link: https://lore.kernel.org/r/20210611082838.409696194@infradead.org
---
kernel/time/timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index d111adf..467087d 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;
}
}
Powered by blists - more mailing lists