aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/smpboot.c
diff options
context:
space:
mode:
authorSiddha, Suresh B <suresh.b.siddha@intel.com>2005-04-16 18:25:20 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:25:20 -0400
commitd31ddaa1722793228b364e87b6c589023b348798 (patch)
treef2c5cfc616721896ad63934aa84da6d44defdf9c /arch/x86_64/kernel/smpboot.c
parenta8ab26fe5bfeef43bdcde5182ca051ae0647607e (diff)
[PATCH] x86, x86_64: dual core proc-cpuinfo and sibling-map fix
- broken sibling_map setup in x86_64 - grouping all the core and HT related cpuinfo fields. We are reasonably sure that adding new cpuinfo fields after "siblings" field, will not cause any app failure. Thats because today's /proc/cpuinfo format is completely different on x86, x86_64 and we haven't heard of any x86 app breakage because of this issue. Grouping these fields will result in more or less common format on all architectures (ia64, x86 and x86_64) and will cause less confusion. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/smpboot.c')
-rw-r--r--arch/x86_64/kernel/smpboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c
index eca01e82d3c7..73f7e8b9543a 100644
--- a/arch/x86_64/kernel/smpboot.c
+++ b/arch/x86_64/kernel/smpboot.c
@@ -652,7 +652,7 @@ static __cpuinit void detect_siblings(void)
652 int i; 652 int i;
653 if (smp_num_siblings > 1) { 653 if (smp_num_siblings > 1) {
654 for_each_online_cpu (i) { 654 for_each_online_cpu (i) {
655 if (cpu_core_id[cpu] == phys_proc_id[i]) { 655 if (cpu_core_id[cpu] == cpu_core_id[i]) {
656 siblings++; 656 siblings++;
657 cpu_set(i, cpu_sibling_map[cpu]); 657 cpu_set(i, cpu_sibling_map[cpu]);
658 } 658 }