diff options
author | Edmundo Carmona Antoranz <eantoranz@gmail.com> | 2021-03-07 00:07:39 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-03-10 11:51:49 +0300 |
commit | 13c2235b2b2870675195f0b551275d1abdd81068 (patch) | |
tree | cae34342507f0458f49cd1a48a904a8ec68504a9 | |
parent | 1e17fb8edc5ad6587e9303ccdebce853bc8cf30c (diff) | |
download | linux-13c2235b2b2870675195f0b551275d1abdd81068.tar.xz |
sched: Remove unnecessary variable from schedule_tail()
Since 565790d28b1 (sched: Fix balance_callback(), 2020-05-11), there
is no longer a need to reuse the result value of the call to finish_task_switch()
inside schedule_tail(), therefore the variable used to hold that value
(rq) is no longer needed.
Signed-off-by: Edmundo Carmona Antoranz <eantoranz@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210306210739.1370486-1-eantoranz@gmail.com
-rw-r--r-- | kernel/sched/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d2629fd2af07..28c4df6dfd97 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4253,8 +4253,6 @@ static struct rq *finish_task_switch(struct task_struct *prev) asmlinkage __visible void schedule_tail(struct task_struct *prev) __releases(rq->lock) { - struct rq *rq; - /* * New tasks start with FORK_PREEMPT_COUNT, see there and * finish_task_switch() for details. @@ -4264,7 +4262,7 @@ asmlinkage __visible void schedule_tail(struct task_struct *prev) * PREEMPT_COUNT kernels). */ - rq = finish_task_switch(prev); + finish_task_switch(prev); preempt_enable(); if (current->set_child_tid) |