Re: [PATCH 2/6] sched_ext: Add scx_enabled() test to @start_class promotion in put_prev_task_balance()

David Vernet
2024-08-05T17:57:37Z

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

On Sat, Aug 03, 2024 at 04:40:09PM -1000, Tejun Heo wrote:
> 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>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]