]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Guard cpu_smt_mask() with CONFIG_SCHED_SMT
authorAndrea Righi <arighi@nvidia.com>
Sun, 22 Mar 2026 06:51:46 +0000 (07:51 +0100)
committerTejun Heo <tj@kernel.org>
Sun, 22 Mar 2026 20:02:49 +0000 (10:02 -1000)
commit63f500c32a37d490ec623a3130e488cdb9bd6cf7
tree87e00f52220662e0332e3007be273f5b2b17b562
parente73b1d7210c02ff223e2786934d5a6e73eab1999
sched_ext: Guard cpu_smt_mask() with CONFIG_SCHED_SMT

Wrap cpu_smt_mask() usage with CONFIG_SCHED_SMT to avoid build failures
on kernels built without SMT support.

Fixes: 2197cecdb02c ("sched_ext: idle: Prioritize idle SMT sibling")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603221422.XIueJOE9-lkp@intel.com/
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext_idle.c