From: Liang Luo Date: Mon, 8 Jun 2026 07:55:00 +0000 (+0800) Subject: sched/deadline: Use task_on_rq_migrating() helper X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9ebe5c3c29f6217412ff256134516d4dff0e5624;p=thirdparty%2Fkernel%2Flinux.git sched/deadline: Use task_on_rq_migrating() helper Replace the open-coded "p->on_rq == TASK_ON_RQ_MIGRATING" comparisons in enqueue_task_dl() and dequeue_task_dl() with the existing task_on_rq_migrating() helper, consistent with the rest of the scheduler code. No functional change. Signed-off-by: Liang Luo Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: K Prateek Nayak Link: https://patch.msgid.link/20260608075500.387271-1-luoliang@kylinos.cn --- diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 4754dbe4232d..5ccb06effea0 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -2530,7 +2530,7 @@ static void enqueue_task_dl(struct rq *rq, struct task_struct *p, int flags) check_schedstat_required(); update_stats_wait_start_dl(dl_rq, dl_se); - if (p->on_rq == TASK_ON_RQ_MIGRATING) + if (task_on_rq_migrating(p)) flags |= ENQUEUE_MIGRATING; enqueue_dl_entity(dl_se, flags); @@ -2552,7 +2552,7 @@ static bool dequeue_task_dl(struct rq *rq, struct task_struct *p, int flags) { update_curr_dl(rq); - if (p->on_rq == TASK_ON_RQ_MIGRATING) + if (task_on_rq_migrating(p)) flags |= DEQUEUE_MIGRATING; dequeue_dl_entity(&p->dl, flags);