[Patch] fix siblings field value in /proc/cpuinfo

From: Siddha, Suresh B <suresh.b.siddha_at_intel.com>
Date: 2005-10-05 09:35:31
Tony, Please apply the appended patch.

thanks,
suresh

--
Fix the "siblings" field value in /proc/cpuinfo so that it now shows the
number of siblings as seen by OS, instead of what is available from
hardware perspective.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>

diff -pNru linux-2.6.14-rc3/arch/ia64/kernel/setup.c linux-2.6.14-rc3-core/arch/ia64/kernel/setup.c
--- linux-2.6.14-rc3/arch/ia64/kernel/setup.c	2005-09-30 14:17:35.000000000 -0700
+++ linux-2.6.14-rc3-core/arch/ia64/kernel/setup.c	2005-10-03 16:29:44.000000000 -0700
@@ -526,7 +526,7 @@ show_cpuinfo (struct seq_file *m, void *
 		   c->itc_freq / 1000000, c->itc_freq % 1000000,
 		   lpj*HZ/500000, (lpj*HZ/5000) % 100);
 #ifdef CONFIG_SMP
-	seq_printf(m, "siblings   : %u\n", c->num_log);
+	seq_printf(m, "siblings   : %u\n", cpus_weight(cpu_core_map[cpunum]));
 	if (c->threads_per_core > 1 || c->cores_per_socket > 1)
 		seq_printf(m,
 		   	   "physical id: %u\n"
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Oct 05 09:36:12 2005

This archive was generated by hypermail 2.1.8 : 2005-10-05 09:36:21 EST