Commit 3eafe225 authored by Wang Jinchao's avatar Wang Jinchao Committed by Ingo Molnar
Browse files

sched/core: Refactor the task_flags check for worker sleeping in sched_submit_work()



Simplify the conditional logic for checking worker flags
by splitting the original compound `if` statement into
separate `if` and `else if` clauses.

This modification not only retains the previous functionality,
but also reduces a single `if` check, improving code clarity
and potentially enhancing performance.

Signed-off-by: default avatarWang Jinchao <wangjinchao@xfusion.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/ZOIMvURE99ZRAYEj@fedora
parent 2f8c6229
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment