aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-04-16 18:24:51 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:24:51 -0400
commitdb4686812835a497d6f5de1e6cf6e8010a3fc0c7 (patch)
tree3a4806ca104fe1807b928d1f85caf69f2dd6f9d8 /arch/x86_64/kernel
parente09b8c0b2006f5e6b543f7458b684d6ebd99e271 (diff)
[PATCH] x86-64/i386: Revert cpuinfo siblings behaviour back to 2.6.10
Only display physical id/siblings when there are siblings or dual core. In 2.6.11 I accidentially broke it and it was always displaying these fields But for compatibility to all these /proc parsers around it is better to do it in the old way again. Noticed by Suresh Siddha Cc: <Suresh.b.siddha@intel.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel')
-rw-r--r--arch/x86_64/kernel/setup.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index e50fc41de6b9..a191d4831789 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -1113,8 +1113,12 @@ static int show_cpuinfo(struct seq_file *m, void *v)
1113 seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size); 1113 seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size);
1114 1114
1115#ifdef CONFIG_SMP 1115#ifdef CONFIG_SMP
1116 seq_printf(m, "physical id\t: %d\n", phys_proc_id[c - cpu_data]); 1116 if (smp_num_siblings * c->x86_num_cores > 1) {
1117 seq_printf(m, "siblings\t: %d\n", c->x86_num_cores * smp_num_siblings); 1117 int cpu = c - cpu_data;
1118 seq_printf(m, "physical id\t: %d\n", phys_proc_id[cpu]);
1119 seq_printf(m, "siblings\t: %d\n",
1120 c->x86_num_cores * smp_num_siblings);
1121 }
1118#endif 1122#endif
1119 1123
1120 seq_printf(m, 1124 seq_printf(m,