From 9efb037b2d09d197e4f63a4a1841a2aefd234759 Mon Sep 17 00:00:00 2001 From: Glauber de Oliveira Costa Date: Wed, 19 Mar 2008 14:25:02 -0300 Subject: [PATCH] --- yaml --- r: 88787 b: refs/heads/master c: 7a636af66404766df60acff88c475df8e8d79347 h: refs/heads/master i: 88785: e30d87cf13a386fe4e5a75dadf4c6aecbf94144d 88783: 68cf124e24fc17122c66efd7820b695749517089 v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/setup_64.c | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 488f58d36505..bfcc607f3e6c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4f3ab1959a63a2686524f17665d799fac28eb271 +refs/heads/master: 7a636af66404766df60acff88c475df8e8d79347 diff --git a/trunk/arch/x86/kernel/setup_64.c b/trunk/arch/x86/kernel/setup_64.c index 13fe525bf065..990724143c43 100644 --- a/trunk/arch/x86/kernel/setup_64.c +++ b/trunk/arch/x86/kernel/setup_64.c @@ -1036,14 +1036,24 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) #endif select_idle_routine(c); - if (c != &boot_cpu_data) - mtrr_ap_init(); #ifdef CONFIG_NUMA numa_add_cpu(smp_processor_id()); #endif } +void __cpuinit identify_boot_cpu(void) +{ + identify_cpu(&boot_cpu_data); +} + +void __cpuinit identify_secondary_cpu(struct cpuinfo_x86 *c) +{ + BUG_ON(c == &boot_cpu_data); + identify_cpu(c); + mtrr_ap_init(); +} + static __init int setup_noclflush(char *arg) { setup_clear_cpu_cap(X86_FEATURE_CLFLSH);