]> err.no Git - linux-2.6/commit
x86: move mtrr cpu cap setting early in early_init_xxxx
authorYinghai Lu <yhlu.kernel@gmail.com>
Thu, 4 Sep 2008 19:09:43 +0000 (21:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Sep 2008 15:50:55 +0000 (17:50 +0200)
commitdd786dd12c99634055a9066f25ea957f29991c22
tree69d303d6ac0d82214015fc7b5ed70d6a68c5c8a5
parent12cf105cd66d95cf32c73cfa847a50bd1b700f23
x86: move mtrr cpu cap setting early in early_init_xxxx

Krzysztof Helt found MTRR is not detected on k6-2

root cause:
we moved mtrr_bp_init() early for mtrr trimming,
and in early_detect we only read the CPU capability from cpuid,
so some cpu doesn't have that bit in cpuid.

So we need to add early_init_xxxx to preset those bit before mtrr_bp_init
for those earlier cpus.

this patch is for v2.6.27

Reported-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/centaur.c
arch/x86/kernel/cpu/cyrix.c