include/linux/sched/smt.h

Source file repositories/reference/linux-study-clean/include/linux/sched/smt.h

File Facts

System
Linux kernel
Corpus path
include/linux/sched/smt.h
Extension
.h
Size
343 bytes
Lines
17
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _LINUX_SCHED_SMT_H
#define _LINUX_SCHED_SMT_H

#include <linux/static_key.h>

extern struct static_key_false sched_smt_present;

static __always_inline bool sched_smt_active(void)
{
	return static_branch_likely(&sched_smt_present);
}

void arch_smt_update(void);

#endif /* _LINUX_SCHED_SMT_H */

Annotation

Implementation Notes