]> git.hungrycats.org Git - linux/commit
sched/deadline: Use task_on_rq_migrating() helper
authorLiang Luo <luoliang@kylinos.cn>
Mon, 8 Jun 2026 07:55:00 +0000 (15:55 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 9 Jun 2026 08:28:08 +0000 (10:28 +0200)
commit9ebe5c3c29f6217412ff256134516d4dff0e5624
treefbb1f82dd50a8a9585f7ffe08017e378c262a2b9
parent76124a050ddbc8b252172205ab04f10a83c03a4d
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 <luoliang@kylinos.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://patch.msgid.link/20260608075500.387271-1-luoliang@kylinos.cn
kernel/sched/deadline.c