projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d054f0
)
x86: fix show cpuinfo cpu number always zero
author
Mike Travis
<
[email protected]
>
Wed, 19 Dec 2007 22:20:19 +0000
(23:20 +0100)
committer
Ingo Molnar
<
[email protected]
>
Wed, 19 Dec 2007 22:20:19 +0000
(23:20 +0100)
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]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/kernel/smpboot_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/smpboot_64.c
b/arch/x86/kernel/smpboot_64.c
index 500670c93d81d278e0402289803f5881946226b5..594889521da1bad7835dc0f2ec372aebe3d33206 100644
(file)
--- a/
arch/x86/kernel/smpboot_64.c
+++ b/
arch/x86/kernel/smpboot_64.c
@@
-141,8
+141,8
@@
static void __cpuinit smp_store_cpu_info(int id)
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);
}