Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / smt.h
blob01441fd2c0a2f307d3ce3a80eca9b6cfb17678df
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __SMT_H
3 #define __SMT_H 1
5 /*
6 * Returns true if SMT (aka hyperthreading) is enabled. Determined via sysfs or
7 * the online topology.
8 */
9 bool smt_on(void);
12 * Returns true when system wide and all SMT threads for a core are in the
13 * user_requested_cpus map.
15 bool core_wide(bool system_wide, const char *user_requested_cpu_list);
17 #endif /* __SMT_H */