aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/intel.c
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/intel.c
parentx86/Centaur: Report correct CPU/cache topology (diff)
downloadlinux-dev-9305bd6ca7b40fece04d7a7a02765e9e8349f146.tar.xz
linux-dev-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/intel.c')
-rw-r--r--arch/x86/kernel/cpu/intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index ca141d159be1..6c414e2f3f5c 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -651,7 +651,7 @@ static void init_intel(struct cpuinfo_x86 *c)
* let's use the legacy cpuid vector 0x1 and 0x4 for topology
* detection.
*/
- c->x86_max_cores = detect_num_cpu_cores(c);
+ detect_num_cpu_cores(c);
#ifdef CONFIG_X86_32
detect_ht(c);
#endif