aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYinghai Lu <Yinghai.Lu@Sun.COM>2008-01-30 07:33:18 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:18 -0500
commit71617bf140fd5a35645527502cd330f84045d40c (patch)
treea37b30471f7b0521ce155002eeebdaf191d4500d /arch
parent99fc8d424bc5d803fe92cad56c068fe64e73747a (diff)
x86: only call early_init_amd one time
Andi's patch " x86: move X86_FEATURE_CONSTANT_TSC into early cpu feature detection Need this in the next patch in time_init and that happens early. This includes a minor fix on i386 where early_intel_workarounds() [which is now called early_init_intel] really executes early as the comments say. " calling early_init_amd in early_identify_cpu and identify_cpu two times. this patch remove the one in identify_cpu Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/setup_64.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index 12948316e6a6..08e85b79e702 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -954,6 +954,9 @@ static void __cpuinit early_identify_cpu(struct cpuinfo_x86 *c)
954 case X86_VENDOR_AMD: 954 case X86_VENDOR_AMD:
955 early_init_amd(c); 955 early_init_amd(c);
956 break; 956 break;
957 case X86_VENDOR_INTEL:
958 early_init_intel(c);
959 break;
957 } 960 }
958 961
959} 962}
@@ -1020,14 +1023,6 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
1020 numa_add_cpu(smp_processor_id()); 1023 numa_add_cpu(smp_processor_id());
1021#endif 1024#endif
1022 1025
1023 switch (c->x86_vendor) {
1024 case X86_VENDOR_AMD:
1025 early_init_amd(c);
1026 break;
1027 case X86_VENDOR_INTEL:
1028 early_init_intel(c);
1029 break;
1030 }
1031} 1026}
1032 1027
1033void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) 1028void __cpuinit print_cpu_info(struct cpuinfo_x86 *c)