sched/core: remove rq getting in schedule_tail
PATCH 1/1 sched/core: remove rq getting in schedule_tail
commit dfa50b605c2a ("sched: Make finish_task_switch() return 'struct rq *'") moved the 'rq' parameter into finish_task_switch, so we don't need it now in schedule_tail.
Signed-off-by Alex Shi <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>
Cc Dietmar Eggemann <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ben Segall <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Daniel Bristot de Oliveira <[email protected]>
--- kernel/sched/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/sched/core.c +1 -2
@@ -4239,7 +4239,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
@@ -4249,7 +4248,7 @@ asmlinkage __visible void schedule_tail(struct task_struct *prev)* and the preempt_enable() will end up enabling preemption. */ - rq =finish_task_switch (prev); +finish_task_switch (prev);preempt_enable ();if (current->set_child_tid)
Signature · 1 line
2.29.GIT