Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12cf105c authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Ingo Molnar
Browse files

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: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f31d731e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}

/*