Skip to content

Commit

Permalink
x86: delay early cpu initialization until cpuid is done
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Helt authored and Ingo Molnar committed Sep 6, 2008
1 parent f31d731 commit 12cf105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/cpu/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 12cf105

Please sign in to comment.