Skip to contentSkip to conversation

x86/cpu: Drop the num_siblings check against nr_cpu_ids

PATCH New Andrew Cooper 1 participant 1 message Jul 29, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/cpu: Drop the num_siblings check against nr_cpu_ids

The printk() is missing a newline which resulted in console corruption.

However, nr_cpu_ids can be legitimately lower than valid num_sibling values given certain compile or boot time configuration.

---
v2: Drop the entire clause. It is bogus

---
 xen/arch/x86/cpu/common.c |    6 ------
 1 file changed, 6 deletions(-)
xen/arch/x86/cpu/common.c +0 -6
index 5156df3..b3af1ae 100644
@@ -444,12 +444,6 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
 		printk(KERN_INFO  "CPU: Hyper-Threading is disabled\n");
 	} else if (c->x86_num_siblings > 1 ) {
 
-		if (c->x86_num_siblings > nr_cpu_ids) {
-			printk(KERN_WARNING "CPU: Unsupported number of the siblings %d", c->x86_num_siblings);
-			c->x86_num_siblings = 1;
-			return;
-		}
-
 		index_msb = get_count_order(c->x86_num_siblings);
 		c->phys_proc_id = phys_pkg_id((ebx >> 24) & 0xFF, index_msb);
 
Signature · 1 line
1.7.10.4