Your IP : 172.28.240.42


Current Path : /usr/src/linux-headers-3.13.0-185/include/linux/sched/
Upload File :
Current File : //usr/src/linux-headers-3.13.0-185/include/linux/sched/smt.h

/* 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
DECLARE_STATIC_KEY_FALSE(sched_smt_present);

static __always_inline bool sched_smt_active(void)
{
	return static_branch_likely_init_false(&sched_smt_present);
}
#else
static inline bool sched_smt_active(void) { return false; }
#endif

void arch_smt_update(void);

#endif