diff options
author | Felipe Cerqueira <felipec@mpi-sws.org> | 2013-02-11 12:10:50 -0500 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-10-21 10:00:11 -0400 |
commit | 5ce8d2c4a1fa8e5a4bca25891f2e892ef55fc89f (patch) | |
tree | f5bb6b0d4fa48300445dd00077192be6fd0bca47 /arch/x86/include | |
parent | 93919aeeb7b30971603a3d67b3d12091a45e9fbf (diff) |
Export x86 cache topology
This patch adds get_shared_cpu_map(), which allows the caller to infer
which CPUs share a cache at a given level.
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/processor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 22224b3b43bb..254dd2b81632 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -173,6 +173,10 @@ void print_cpu_msr(struct cpuinfo_x86 *); | |||
173 | extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); | 173 | extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); |
174 | extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); | 174 | extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); |
175 | extern void init_amd_cacheinfo(struct cpuinfo_x86 *c); | 175 | extern void init_amd_cacheinfo(struct cpuinfo_x86 *c); |
176 | #ifdef CONFIG_SYSFS | ||
177 | extern int get_shared_cpu_map(cpumask_var_t mask, | ||
178 | unsigned int cpu, int index); | ||
179 | #endif | ||
176 | 180 | ||
177 | extern void detect_extended_topology(struct cpuinfo_x86 *c); | 181 | extern void detect_extended_topology(struct cpuinfo_x86 *c); |
178 | extern void detect_ht(struct cpuinfo_x86 *c); | 182 | extern void detect_ht(struct cpuinfo_x86 *c); |