commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
21 lines
415 B
C
21 lines
415 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_SCHED_SMT_H
|
|
#define _LINUX_SCHED_SMT_H
|
|
|
|
#include <linux/static_key.h>
|
|
|
|
#ifdef CONFIG_SCHED_SMT
|
|
extern struct static_key_false sched_smt_present;
|
|
|
|
static __always_inline bool sched_smt_active(void)
|
|
{
|
|
return static_branch_likely(&sched_smt_present);
|
|
}
|
|
#else
|
|
static inline bool sched_smt_active(void) { return false; }
|
|
#endif
|
|
|
|
void arch_smt_update(void);
|
|
|
|
#endif
|