diff options
author | 2025-06-11 21:54:02 +0800 | |
---|---|---|
committer | 2025-06-13 14:30:58 -1000 | |
commit | 6a1cda143c239475018e7f72f4359ed3c265653c (patch) | |
tree | 0a50e6e5e811a6d0ac0118f239fbd94d4c4f4f8f | |
parent | sched_ext: Always use SMP versions in kernel/sched/ext.c (diff) | |
download | wireguard-linux-6a1cda143c239475018e7f72f4359ed3c265653c.tar.xz wireguard-linux-6a1cda143c239475018e7f72f4359ed3c265653c.zip |
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 <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | kernel/sched/ext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/ext.h b/kernel/sched/ext.h index 6d6d00e9de20..621efa8f0fe9 100644 --- a/kernel/sched/ext.h +++ b/kernel/sched/ext.h @@ -81,7 +81,7 @@ static inline void init_sched_ext_class(void) {} #endif /* CONFIG_SCHED_CLASS_EXT */ -#if defined(CONFIG_SCHED_CLASS_EXT) && defined(CONFIG_SMP) +#ifdef CONFIG_SCHED_CLASS_EXT void __scx_update_idle(struct rq *rq, bool idle, bool do_notify); static inline void scx_update_idle(struct rq *rq, bool idle, bool do_notify) |