1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_SCHED_SMT_H 2 #ifndef _LINUX_SCHED_SMT_H 3 #define _LINUX_SCHED_SMT_H 3 #define _LINUX_SCHED_SMT_H 4 4 5 #include <linux/static_key.h> 5 #include <linux/static_key.h> 6 6 7 #ifdef CONFIG_SCHED_SMT 7 #ifdef CONFIG_SCHED_SMT 8 extern struct static_key_false sched_smt_prese 8 extern struct static_key_false sched_smt_present; 9 9 10 static __always_inline bool sched_smt_active(v 10 static __always_inline bool sched_smt_active(void) 11 { 11 { 12 return static_branch_likely(&sched_smt 12 return static_branch_likely(&sched_smt_present); 13 } 13 } 14 #else 14 #else 15 static inline bool sched_smt_active(void) { re 15 static inline bool sched_smt_active(void) { return false; } 16 #endif 16 #endif 17 17 18 void arch_smt_update(void); 18 void arch_smt_update(void); 19 19 20 #endif /* _LINUX_SCHED_SMT_H */ !! 20 #endif 21 21
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.