summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot_64.c
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa2008-03-19 18:25:04 +0100
committerIngo Molnar2008-04-17 17:40:59 +0200
commitf7401f7fe653f90f8f80a241840b9b499779e87d (patch)
treef0f869fd7bf1a23d1a0e709975b2617c6f0c0987 /arch/x86/kernel/smpboot_64.c
parentx86: use identify_boot_cpu (diff)
downloadkernel-qcow2-linux-f7401f7fe653f90f8f80a241840b9b499779e87d.tar.gz
kernel-qcow2-linux-f7401f7fe653f90f8f80a241840b9b499779e87d.tar.xz
kernel-qcow2-linux-f7401f7fe653f90f8f80a241840b9b499779e87d.zip
x86: call identify_secondary_cpu in smp_store_cpu_info
Call it conditionally for secondary cpus. This behaviour matches i386 Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot_64.c')
-rw-r--r--arch/x86/kernel/smpboot_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index 1da28c6c1f5f..f84e30da521a 100644
--- a/arch/x86/kernel/smpboot_64.c
+++ b/arch/x86/kernel/smpboot_64.c
@@ -96,7 +96,8 @@ static void __cpuinit smp_store_cpu_info(int id)
*c = boot_cpu_data;
c->cpu_index = id;
- identify_cpu(c);
+ if (id != 0)
+ identify_secondary_cpu(c);
}
static inline void wait_for_init_deassert(atomic_t *deassert)