pick_next_task is never return NULL because idle task
will return when cpu is idle.

Signed-off-by: Huang Zijiang <huang.ziji...@zte.com.cn>
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index dbe9a3f..1de1a85 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5624,7 +5624,6 @@ static void migrate_tasks(struct rq *dead_rq, struct 
rq_flags *rf)
  *              * pick_next_task() assumes pinned rq->lock:
  *                              */
                next = pick_next_task(rq, &fake_task, rf);
-               BUG_ON(!next);
                put_prev_task(rq, next);
 
                /*
-- 
1.8.3.1

Reply via email to