* [Patch] fix siblings field value in /proc/cpuinfo
@ 2005-10-04 23:35 Siddha, Suresh B
0 siblings, 0 replies; only message in thread
From: Siddha, Suresh B @ 2005-10-04 23:35 UTC (permalink / raw)
To: linux-ia64
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-04 23:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-04 23:35 [Patch] fix siblings field value in /proc/cpuinfo Siddha, Suresh B
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox