aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorFelipe Cerqueira <felipec@mpi-sws.org>2013-02-11 12:10:50 -0500
committerNamhoon Kim <namhoonk@cs.unc.edu>2014-10-21 10:00:11 -0400
commit5ce8d2c4a1fa8e5a4bca25891f2e892ef55fc89f (patch)
treef5bb6b0d4fa48300445dd00077192be6fd0bca47 /arch/x86/include
parent93919aeeb7b30971603a3d67b3d12091a45e9fbf (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.h4
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 *);
173extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); 173extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c);
174extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); 174extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
175extern void init_amd_cacheinfo(struct cpuinfo_x86 *c); 175extern void init_amd_cacheinfo(struct cpuinfo_x86 *c);
176#ifdef CONFIG_SYSFS
177extern int get_shared_cpu_map(cpumask_var_t mask,
178 unsigned int cpu, int index);
179#endif
176 180
177extern void detect_extended_topology(struct cpuinfo_x86 *c); 181extern void detect_extended_topology(struct cpuinfo_x86 *c);
178extern void detect_ht(struct cpuinfo_x86 *c); 182extern void detect_ht(struct cpuinfo_x86 *c);