From: Siddha, Suresh B Date: Tue, 4 Oct 2005 23:35:31 +0000 (-0700) Subject: [IA64] fix siblings field value in /proc/cpuinfo X-Git-Tag: v2.6.15-rc1~731^2~16^2^2~8^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ce6e71ad4866dad366be135b024b776c00ec9ec8;p=linux-2.6-omap-h63xx.git [IA64] fix siblings field value in /proc/cpuinfo 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 Signed-off-by: Tony Luck --- diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index 1f5c26dbe70..0ca6ef10395 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c @@ -526,7 +526,7 @@ show_cpuinfo (struct seq_file *m, void *v) 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"