Skip to content

Commit 6a1cda1

Browse files
EricccTaiwanhtejun
authored andcommitted
sched_ext: Always use SMP versions in kernel/sched/ext.h
Simplify the scheduler by making formerly SMP-only primitives and data structures unconditional. tj: Updated subject for clarity. Replace #if defined() with #ifdef. Signed-off-by: Cheng-Yang Chou <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 165af41 commit 6a1cda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static inline void init_sched_ext_class(void) {}
8181

8282
#endif /* CONFIG_SCHED_CLASS_EXT */
8383

84-
#if defined(CONFIG_SCHED_CLASS_EXT) && defined(CONFIG_SMP)
84+
#ifdef CONFIG_SCHED_CLASS_EXT
8585
void __scx_update_idle(struct rq *rq, bool idle, bool do_notify);
8686

8787
static inline void scx_update_idle(struct rq *rq, bool idle, bool do_notify)

0 commit comments

Comments
 (0)