1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __SMT_H 2 #ifndef __SMT_H 3 #define __SMT_H 1 3 #define __SMT_H 1 4 4 5 /* !! 5 struct cpu_topology; 6 * Returns true if SMT (aka hyperthreading) is !! 6 7 * the online topology. !! 7 /* Returns true if SMT (aka hyperthreading) is enabled. */ 8 */ !! 8 bool smt_on(const struct cpu_topology *topology); 9 bool smt_on(void); << 10 9 11 /* 10 /* 12 * Returns true when system wide and all SMT t 11 * Returns true when system wide and all SMT threads for a core are in the 13 * user_requested_cpus map. 12 * user_requested_cpus map. 14 */ 13 */ 15 bool core_wide(bool system_wide, const char *u !! 14 bool core_wide(bool system_wide, const char *user_requested_cpu_list, >> 15 const struct cpu_topology *topology); 16 16 17 #endif /* __SMT_H */ 17 #endif /* __SMT_H */ 18 18
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.