]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[IA64] fix siblings field value in /proc/cpuinfo
authorSiddha, Suresh B <suresh.b.siddha@intel.com>
Tue, 4 Oct 2005 23:35:31 +0000 (16:35 -0700)
committerTony Luck <tony.luck@intel.com>
Tue, 25 Oct 2005 22:00:36 +0000 (15:00 -0700)
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>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/setup.c

index 1f5c26dbe705500b58c79568c4293eb2e45bc46a..0ca6ef103952587e447ca37c7458a5dad22d4228 100644 (file)
@@ -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"