aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/intel.c
diff options
context:
space:
mode:
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 1f7fdb91a818..e4393bfc7f0d 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -336,7 +336,7 @@ static int intel_num_cpu_cores(struct cpuinfo_x86 *c)
336{ 336{
337 unsigned int eax, ebx, ecx, edx; 337 unsigned int eax, ebx, ecx, edx;
338 338
339 if (c->cpuid_level < 4) 339 if (!IS_ENABLED(CONFIG_SMP) || c->cpuid_level < 4)
340 return 1; 340 return 1;
341 341
342 /* Intel has a non-standard dependency on %ecx for this CPUID level. */ 342 /* Intel has a non-standard dependency on %ecx for this CPUID level. */