Skip to content

Commit 8b27f2f

Browse files
nikhilpraoIngo Molnar
authored andcommitted
x86: Remove unnecessary check in detect_ht()
This patch removes a check that causes incorrect scheduler domain setup (SMP instead of SMT) and bootlog warning messages when cpuid extensions for topology enumeration are not supported and the number of processors reported to the OS is smaller than smp_num_siblings. Acked-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com> Link: http://lkml.kernel.org/r/1306343921.19325.1.camel@fedora13 Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent af6a25f commit 8b27f2f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

arch/x86/kernel/cpu/common.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
477477
if (smp_num_siblings <= 1)
478478
goto out;
479479

480-
if (smp_num_siblings > nr_cpu_ids) {
481-
pr_warning("CPU: Unsupported number of siblings %d",
482-
smp_num_siblings);
483-
smp_num_siblings = 1;
484-
return;
485-
}
486-
487480
index_msb = get_count_order(smp_num_siblings);
488481
c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, index_msb);
489482

0 commit comments

Comments
 (0)