From 00651fad8de421d9a330182ed719cc7df903a875 Mon Sep 17 00:00:00 2001 From: Jun Nakajima Date: Mon, 9 Feb 2004 23:17:40 -0800 Subject: [PATCH] [PATCH] Remove the assumption that the number of the sibling is 2 Thanks to Nick's domain patch, the kernel worked fine with smp_num_siblings = 4 (in simulation). --- arch/i386/kernel/cpu/intel.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/i386/kernel/cpu/intel.c b/arch/i386/kernel/cpu/intel.c index c7e7125af2cb7..444bc32513aa4 100644 --- a/arch/i386/kernel/cpu/intel.c +++ b/arch/i386/kernel/cpu/intel.c @@ -296,12 +296,8 @@ static void __init init_intel(struct cpuinfo_x86 *c) } else if (smp_num_siblings > 1 ) { index_lsb = 0; index_msb = 31; - /* - * At this point we only support two siblings per - * processor package. - */ -#define NR_SIBLINGS 2 - if (smp_num_siblings != NR_SIBLINGS) { + + if (smp_num_siblings > NR_CPUS) { printk(KERN_WARNING "CPU: Unsupported number of the siblings %d", smp_num_siblings); smp_num_siblings = 1; goto too_many_siblings; -- 2.53.0