summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/cpu.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-05-13 11:43:53 +0200
committerThomas Gleixner <tglx@linutronix.de>2018-05-13 16:14:24 +0200
commit9305bd6ca7b40fece04d7a7a02765e9e8349f146 (patch)
treef9134d2e5a07e702c5d0c28a6ea41d9ec1179fc0 /arch/x86/kernel/cpu/cpu.h
parenta2aa578fec8c29436bce5e6c15e1e31729d539a3 (diff)
downloadlwn-9305bd6ca7b40fece04d7a7a02765e9e8349f146.tar.gz
lwn-9305bd6ca7b40fece04d7a7a02765e9e8349f146.zip
x86/CPU: Move x86_cpuinfo::x86_max_cores assignment to detect_num_cpu_cores()
No point to have it at the call sites. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/cpu/cpu.h')
-rw-r--r--arch/x86/kernel/cpu/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h
index 49bf8a080105..295cb00a5ac5 100644
--- a/arch/x86/kernel/cpu/cpu.h
+++ b/arch/x86/kernel/cpu/cpu.h
@@ -54,7 +54,7 @@ extern u32 get_scattered_cpuid_leaf(unsigned int level,
extern void init_intel_cacheinfo(struct cpuinfo_x86 *c);
extern void init_amd_cacheinfo(struct cpuinfo_x86 *c);
-extern int detect_num_cpu_cores(struct cpuinfo_x86 *c);
+extern void detect_num_cpu_cores(struct cpuinfo_x86 *c);
extern int detect_extended_topology(struct cpuinfo_x86 *c);
extern void detect_ht(struct cpuinfo_x86 *c);