The patch titled
     x86: fix show cpuinfo cpu number always zero
has been added to the -mm tree.  Its filename is
     x86-fix-show-cpuinfo-cpu-number-always-zero.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: x86: fix show cpuinfo cpu number always zero
From: Mike Travis <[EMAIL PROTECTED]>

Correct the problem that early_identify_cpu() sets cpu_index to '0' (needed
when called by setup_arch) after smp_store_cpu_info() had set it to the
correct value.

The error shows up in 'cat /proc/cpuinfo' will all cpus = 0.

Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Cc: Christoph Lameter <[EMAIL PROTECTED]>
Cc: Jack Steiner <[EMAIL PROTECTED]>
Cc: Suresh B Siddha <[EMAIL PROTECTED]>
Cc: Ingo Molnar <[EMAIL PROTECTED]>
Cc: Thomas Gleixner <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 arch/x86/kernel/smpboot_64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN 
arch/x86/kernel/smpboot_64.c~x86-fix-show-cpuinfo-cpu-number-always-zero 
arch/x86/kernel/smpboot_64.c
--- a/arch/x86/kernel/smpboot_64.c~x86-fix-show-cpuinfo-cpu-number-always-zero
+++ a/arch/x86/kernel/smpboot_64.c
@@ -139,8 +139,8 @@ static void __cpuinit smp_store_cpu_info
        struct cpuinfo_x86 *c = &cpu_data(id);
 
        *c = boot_cpu_data;
-       c->cpu_index = id;
        identify_cpu(c);
+       c->cpu_index = id;
        print_cpu_info(c);
 }
 
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

git-x86.patch
x86-fix-show-cpuinfo-cpu-number-always-zero.patch
vmstat-remove-prefetch.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to