]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Add scx_enabled() test to @start_class promotion in put_prev_task_balance()
authorTejun Heo <tj@kernel.org>
Tue, 6 Aug 2024 19:40:10 +0000 (09:40 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 6 Aug 2024 19:40:10 +0000 (09:40 -1000)
commitcd0144926836b8405966ca9d00f6425ef822fa4b
tree94141b75f78a5a14b5cfda70787f5dddc67688ed
parent11cc374f4643b1be16deab571e034409c6ee7e66
sched_ext: Add scx_enabled() test to @start_class promotion in put_prev_task_balance()

SCX needs its balance() invoked even when waking up from a lower priority
sched class (idle) and put_prev_task_balance() thus has the logic to promote
@start_class if it's lower than ext_sched_class. This is only needed when
SCX is enabled. Add scx_enabled() test to avoid unnecessary overhead when
SCX is disabled.

Signed-off-by: Tejun Heo <tj@kernel.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: David Vernet <void@manifault.com>
kernel/sched/core.c