diff options
author | Wang Jinchao <wangjinchao@xfusion.com> | 2023-08-20 20:53:17 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-09-24 12:15:06 +0200 |
commit | 3eafe225995c67f8c179011ec2d6e4c12b32a53d (patch) | |
tree | 0d3925bb47c4a01be52330ac0648e9aece2c9c5b /kernel/sched/debug.c | |
parent | 2f8c62296b6f656bbfd17e9f1fadd7478003a9d9 (diff) | |
download | linux-3eafe225995c67f8c179011ec2d6e4c12b32a53d.tar.gz linux-3eafe225995c67f8c179011ec2d6e4c12b32a53d.tar.bz2 linux-3eafe225995c67f8c179011ec2d6e4c12b32a53d.zip |
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: Wang Jinchao <wangjinchao@xfusion.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/ZOIMvURE99ZRAYEj@fedora
Diffstat (limited to 'kernel/sched/debug.c')
0 files changed, 0 insertions, 0 deletions