diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2008-09-04 15:09:43 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-04 15:09:43 -0400 |
commit | 5031088dbc0cd30e893eb27d53f0e0eee6eb1c00 (patch) | |
tree | 399456916e6f5b1ed6042277d2f0d43b7eb4ac04 /arch/x86/kernel/cpu | |
parent | 5fef55fddb7317585cabc1eae38dbd57f1c59729 (diff) |
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/kernel/cpu')
-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 0785b3c8d04..8aab8517642 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) | |||
335 | 335 | ||
336 | get_cpu_vendor(c, 1); | 336 | get_cpu_vendor(c, 1); |
337 | 337 | ||
338 | early_get_cap(c); | ||
339 | |||
338 | if (c->x86_vendor != X86_VENDOR_UNKNOWN && | 340 | if (c->x86_vendor != X86_VENDOR_UNKNOWN && |
339 | cpu_devs[c->x86_vendor]->c_early_init) | 341 | cpu_devs[c->x86_vendor]->c_early_init) |
340 | cpu_devs[c->x86_vendor]->c_early_init(c); | 342 | cpu_devs[c->x86_vendor]->c_early_init(c); |
341 | |||
342 | early_get_cap(c); | ||
343 | } | 343 | } |
344 | 344 | ||
345 | /* | 345 | /* |