aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c33
1 files changed, 10 insertions, 23 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index a38aafaefc23..0fd6be154d5d 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -328,14 +328,9 @@ static void __init early_cpu_detect(void)
328 328
329 get_cpu_vendor(c, 1); 329 get_cpu_vendor(c, 1);
330 330
331 switch (c->x86_vendor) { 331 if (c->x86_vendor != X86_VENDOR_UNKNOWN &&
332 case X86_VENDOR_AMD: 332 cpu_devs[c->x86_vendor]->c_early_init)
333 early_init_amd(c); 333 cpu_devs[c->x86_vendor]->c_early_init(c);
334 break;
335 case X86_VENDOR_INTEL:
336 early_init_intel(c);
337 break;
338 }
339 334
340 early_get_cap(c); 335 early_get_cap(c);
341} 336}
@@ -616,23 +611,15 @@ __setup("clearcpuid=", setup_disablecpuid);
616 611
617cpumask_t cpu_initialized __cpuinitdata = CPU_MASK_NONE; 612cpumask_t cpu_initialized __cpuinitdata = CPU_MASK_NONE;
618 613
619/* This is hacky. :)
620 * We're emulating future behavior.
621 * In the future, the cpu-specific init functions will be called implicitly
622 * via the magic of initcalls.
623 * They will insert themselves into the cpu_devs structure.
624 * Then, when cpu_init() is called, we can just iterate over that array.
625 */
626void __init early_cpu_init(void) 614void __init early_cpu_init(void)
627{ 615{
628 intel_cpu_init(); 616 struct cpu_vendor_dev *cvdev;
629 cyrix_init_cpu(); 617
630 nsc_init_cpu(); 618 for (cvdev = __x86cpuvendor_start ;
631 amd_init_cpu(); 619 cvdev < __x86cpuvendor_end ;
632 centaur_init_cpu(); 620 cvdev++)
633 transmeta_init_cpu(); 621 cpu_devs[cvdev->vendor] = cvdev->cpu_dev;
634 nexgen_init_cpu(); 622
635 umc_init_cpu();
636 early_cpu_detect(); 623 early_cpu_detect();
637} 624}
638 625