diff options
| author | Andrea Righi <arighi@nvidia.com> | 2025-03-14 10:45:34 +0100 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-03-14 08:17:11 -1000 |
| commit | e4855fc90e52efef7e3926205c8dc53ce39b6138 (patch) | |
| tree | e0ce21343f62b3fa13be7450f82385c8560dd228 /kernel/sched/ext_idle.h | |
| parent | c414c2171cd9ec2475fd641a16d6b2cac3344390 (diff) | |
sched_ext: idle: Refactor scx_select_cpu_dfl()
Make scx_select_cpu_dfl() more consistent with the other idle-related
APIs by returning a negative value when an idle CPU isn't found.
No functional changes, this is purely a refactoring.
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/sched/ext_idle.h')
| -rw-r--r-- | kernel/sched/ext_idle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/ext_idle.h b/kernel/sched/ext_idle.h index 5c1db6b315f7..511cc2221f7a 100644 --- a/kernel/sched/ext_idle.h +++ b/kernel/sched/ext_idle.h @@ -27,7 +27,7 @@ static inline s32 scx_pick_idle_cpu(const struct cpumask *cpus_allowed, int node } #endif /* CONFIG_SMP */ -s32 scx_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, u64 wake_flags, u64 flags, bool *found); +s32 scx_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, u64 wake_flags, u64 flags); void scx_idle_enable(struct sched_ext_ops *ops); void scx_idle_disable(void); int scx_idle_init(void); |
