Commit 537bc91c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix early CPU vendor detection for non intel cpus

From: Andi Kleen <ak@suse.de>

Early CPU detect can only work after the various sub CPU drivers have
registered their devices.

Currently the vendor would be always 0, which is Intel.

This prevents Athlons from being recognized as buggy PPros and fixes some
other workarounds for non Intel CPUs too.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 901c036a
......@@ -473,7 +473,6 @@ void early_cpu_detect(void);
void __init early_cpu_init(void)
{
early_cpu_detect();
intel_cpu_init();
cyrix_init_cpu();
nsc_init_cpu();
......@@ -483,6 +482,7 @@ void __init early_cpu_init(void)
rise_init_cpu();
nexgen_init_cpu();
umc_init_cpu();
early_cpu_detect();
#ifdef CONFIG_DEBUG_PAGEALLOC
/* pse is not compatible with on-the-fly unmapping,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment