repo: https://github.com/T-head-Semi/linux commit: b1313fe517ca3703119dcc99ef3bbf75ab42bcfb Change-Id: I6cbb35294024ea3a66140e311f4bb705fd7fd626
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
|