projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37477d9
)
sched_ext: Remove a meaningless conditional goto in scx_select_cpu_dfl()
author
Tejun Heo
<tj@kernel.org>
Wed, 26 Mar 2025 20:09:47 +0000
(10:09 -1000)
committer
Tejun Heo
<tj@kernel.org>
Wed, 26 Mar 2025 20:09:47 +0000
(10:09 -1000)
scx_select_cpu_dfl() has a meaningless conditional goto at the end. Remove
it. No functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext_idle.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched/ext_idle.c
b/kernel/sched/ext_idle.c
index 45061b5843806ca49a5c2529e3d2dae6dcbf25ee..b5f451e616d48c638f70b8e134f69104b9cea3ff 100644
(file)
--- a/
kernel/sched/ext_idle.c
+++ b/
kernel/sched/ext_idle.c
@@
-584,8
+584,6
@@
s32 scx_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, u64 wake_flags, u64
* increasing distance.
*/
cpu = scx_pick_idle_cpu(p->cpus_ptr, node, flags);
- if (cpu >= 0)
- goto out_unlock;
out_unlock:
rcu_read_unlock();