]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/fair: Unify pick_{,next_}_task_fair()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 3 Apr 2024 07:50:16 +0000 (09:50 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 17 Aug 2024 09:06:41 +0000 (11:06 +0200)
commit3b3dd89b8bb0f03657859c22c86c19224f778638
treec6d0a6725ac72a611dea316d14fa0675dfbee1e0
parentc97f54fe6d014419e557200ed075cf53b47c5420
sched/fair: Unify pick_{,next_}_task_fair()

Implement pick_next_task_fair() in terms of pick_task_fair() to
de-duplicate the pick loop.

More importantly, this makes all the pick loops use the
state-invariant form, which is useful to introduce further re-try
conditions in later patches.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Tested-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lkml.kernel.org/r/20240727105028.725062368@infradead.org
kernel/sched/fair.c