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.
Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
if (c->x86_num_siblings == 1) {
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);