summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2026-05-11 13:31:13 +0200
committerPeter Zijlstra <peterz@infradead.org>2026-05-26 13:53:14 +0200
commit5ad278dd20bdf59714443894d7b3044471af97d0 (patch)
treeb1de0d2d79b7f5159420aec63af9f01c032ae8b0 /scripts/basic
parentb3a2dfa8b42e5b97dd144aa59374f4e045725cac (diff)
sched: Remove sched_class::pick_next_task()
The reason for pick_next_task_fair() is the put/set optimization that avoids touching the common ancestors. However, it is possible to implement this in the put_prev_task() and set_next_task() calls as used in put_prev_set_next_task(). Notably, put_prev_set_next_task() is the only site that: - calls put_prev_task() with a .next argument; - calls set_next_task() with .first = true. This means that put_prev_task() can determine the common hierarchy and stop there, and then set_next_task() can terminate where put_prev_task stopped. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://patch.msgid.link/20260511120628.057634261@infradead.org
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions