]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Add put_prev_task(.next)
authorPeter Zijlstra <peterz@infradead.org>
Tue, 13 Aug 2024 22:25:56 +0000 (00:25 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 3 Sep 2024 13:26:32 +0000 (15:26 +0200)
commitb2d70222dbf2a2ff7a972a685d249a5d75afa87f
tree44cd70aefffd4238abb82da3cbe6ff79c39e12e3
parentbd9bbc96e8356886971317f57994247ca491dbf1
sched: Add put_prev_task(.next)

In order to tell the previous sched_class what the next task is, add
put_prev_task(.next).

Notable SCX will use this to:

 1) determine the next task will leave the SCX sched class and push
    the current task to another CPU if possible.
 2) statistics on how often and which other classes preempt it

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240813224016.367421076@infradead.org
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/idle.c
kernel/sched/rt.c
kernel/sched/sched.h
kernel/sched/stop_task.c