brintos

brintos / linux-shallow public Read only

0
0
Text · 408 B · 01441fd Raw
18 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef __SMT_H3#define __SMT_H 14 5/*6 * Returns true if SMT (aka hyperthreading) is enabled. Determined via sysfs or7 * the online topology.8 */9bool smt_on(void);10 11/*12 * Returns true when system wide and all SMT threads for a core are in the13 * user_requested_cpus map.14 */15bool core_wide(bool system_wide, const char *user_requested_cpu_list);16 17#endif /* __SMT_H */18