[PATCH 2/6] sched: Reuse put_prev_task()
From: Viresh Kumar
Date: Wed May 24 2017 - 01:31:09 EST
Reuse put_prev_task() instead of copying its implementation.
Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index a8366cfebd31..8ddebb068585 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5683,7 +5683,7 @@ static void migrate_tasks(struct rq *dead_rq, struct rq_flags *rf)
*/
next = pick_next_task(rq, &fake_task, rf);
BUG_ON(!next);
- next->sched_class->put_prev_task(rq, next);
+ put_prev_task(rq, next);
/*
* Rules for changing task_struct::cpus_allowed are holding
--
2.13.0.70.g6367777092d9