cpuid.4 doesn't need cpu level 5
PATCH 1/1 cpuid.4 doesn't need cpu level 5
Detecting cache line using cpuid.4, cpuid level 4 is enough.
Signed-off-by Shaohua Li<[email protected]>
---
linux-2.6.16-rc5-root/arch/i386/kernel/cpu/intel_cacheinfo.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
arch/i386/kernel/cpu/intel_cacheinfo.c renamed from arch/i386/kernel/cpu/intel_cacheinfo.c~cpuid4 +1 -1
@@ -174,7 +174,7 @@ unsigned int __cpuinit init_intel_cacheiunsigned int new_l1d =0 , new_l1i =0 ;/* Cache sizes from cpuid(4) */ unsigned int new_l2 =0 , new_l3 =0 , i;/* Cache sizes from cpuid(4) */ -if (c->cpuid_level >4 ) { +if (c->cpuid_level >3 ) {static int is_initialized;if (is_initialized ==0 ) {
_