]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/fair: Untangle NEXT_BUDDY and pick_next_task()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 29 Nov 2024 10:15:41 +0000 (11:15 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 9 Dec 2024 10:48:13 +0000 (11:48 +0100)
commit2a77e4be12cb58bbf774e7c717c8bb80e128b7a4
tree54ed38b9bc900235dbf85151e445a73172cb788a
parent95d9fed3a2aea85fe9551c2f007e186d4abb4a2a
sched/fair: Untangle NEXT_BUDDY and pick_next_task()

There are 3 sites using set_next_buddy() and only one is conditional
on NEXT_BUDDY, the other two sites are unconditional; to note:

  - yield_to_task()
  - cgroup dequeue / pick optimization

However, having NEXT_BUDDY control both the wakeup-preemption and the
picking side of things means its near useless.

Fixes: 147f3efaa241 ("sched/fair: Implement an EEVDF-like scheduling policy")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20241129101541.GA33464@noisy.programming.kicks-ass.net
kernel/sched/fair.c
kernel/sched/features.h