diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2008-09-04 19:09:43 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-06 15:50:38 (GMT) |
commit | 12cf105cd66d95cf32c73cfa847a50bd1b700f23 (patch) | |
tree | c2a8f18d49e22cfd69510f56722edb09a08203d0 /arch/x86 | |
parent | f31d731e4467e61de51d7f6d7115f3b712d9354c (diff) | |
download | linux-fsl-qoriq-12cf105cd66d95cf32c73cfa847a50bd1b700f23.tar.xz |
x86: delay early cpu initialization until cpuid is done
Move early cpu initialization after cpu early get cap so the
early cpu initialization can fix up cpu caps.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 0785b3c..8aab851 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -335,11 +335,11 @@ static void __init early_cpu_detect(void) get_cpu_vendor(c, 1); + early_get_cap(c); + if (c->x86_vendor != X86_VENDOR_UNKNOWN && cpu_devs[c->x86_vendor]->c_early_init) cpu_devs[c->x86_vendor]->c_early_init(c); - - early_get_cap(c); } /* |