1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_SCHED_SMT_H
3 #define _LINUX_SCHED_SMT_H
5 #include <linux/atomic.h>
7 #ifdef CONFIG_SCHED_SMT
8 extern atomic_t sched_smt_present;
10 static __always_inline bool sched_smt_active(void)
12 return atomic_read(&sched_smt_present);
15 static inline bool sched_smt_active(void) { return false; }
18 void arch_smt_update(void);