sched: Combine the last put_prev_task() and the first set_next_task()

Ensure the last put_prev_task() and the first set_next_task() always
go together.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240813224016.158454756@infradead.org
This commit is contained in:
Peter Zijlstra 2024-08-14 00:25:54 +02:00
commit 436f3eed5c
3 changed files with 14 additions and 16 deletions