Skip to content

Commit 545b343

Browse files
EricccTaiwanhtejun
authored andcommitted
sched_ext: Always use SMP versions in kernel/sched/ext_idle.h
Simplify the scheduler by making formerly SMP-only primitives and data structures unconditional. tj: Updated subject for clarity. Signed-off-by: Cheng-Yang Chou <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 8834ace commit 545b343

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

kernel/sched/ext_idle.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@
1212

1313
struct sched_ext_ops;
1414

15-
#ifdef CONFIG_SMP
1615
void scx_idle_update_selcpu_topology(struct sched_ext_ops *ops);
1716
void scx_idle_init_masks(void);
18-
#else /* !CONFIG_SMP */
19-
static inline void scx_idle_update_selcpu_topology(struct sched_ext_ops *ops) {}
20-
static inline void scx_idle_init_masks(void) {}
21-
#endif /* CONFIG_SMP */
2217

2318
s32 scx_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, u64 wake_flags,
2419
const struct cpumask *cpus_allowed, u64 flags);

0 commit comments

Comments
 (0)