Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_SCHED_SMT_H
0003 #define _LINUX_SCHED_SMT_H
0004 
0005 #include <linux/static_key.h>
0006 
0007 #ifdef CONFIG_SCHED_SMT
0008 extern struct static_key_false sched_smt_present;
0009 
0010 static __always_inline bool sched_smt_active(void)
0011 {
0012     return static_branch_likely(&sched_smt_present);
0013 }
0014 #else
0015 static inline bool sched_smt_active(void) { return false; }
0016 #endif
0017 
0018 void arch_smt_update(void);
0019 
0020 #endif