From: "Andi Kleen" It was confusingly named. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton --- 25-akpm/arch/x86_64/kernel/setup.c | 13 ++++++------- 25-akpm/include/asm-x86_64/processor.h | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff -puN arch/x86_64/kernel/setup.c~x86_64-rename-the-extended-cpuid-level-field arch/x86_64/kernel/setup.c --- 25/arch/x86_64/kernel/setup.c~x86_64-rename-the-extended-cpuid-level-field Thu Apr 7 15:11:31 2005 +++ 25-akpm/arch/x86_64/kernel/setup.c Thu Apr 7 15:11:31 2005 @@ -673,7 +673,7 @@ static int __init get_model_name(struct { unsigned int *v; - if (c->x86_cpuid_level < 0x80000004) + if (c->extended_cpuid_level < 0x80000004) return 0; v = (unsigned int *) c->x86_model_id; @@ -689,7 +689,7 @@ static void __init display_cacheinfo(str { unsigned int n, dummy, eax, ebx, ecx, edx; - n = c->x86_cpuid_level; + n = c->extended_cpuid_level; if (n >= 0x80000005) { cpuid(0x80000005, &dummy, &ebx, &ecx, &edx); @@ -773,7 +773,7 @@ static int __init init_amd(struct cpuinf } display_cacheinfo(c); - if (c->x86_cpuid_level >= 0x80000008) { + if (c->extended_cpuid_level >= 0x80000008) { c->x86_num_cores = (cpuid_ecx(0x80000008) & 0xff) + 1; if (c->x86_num_cores & (c->x86_num_cores - 1)) c->x86_num_cores = 1; @@ -833,7 +833,6 @@ static void __init detect_ht(struct cpui if (smp_num_siblings & (smp_num_siblings - 1)) index_msb++; - /* RED-PEN surely this must run in the non HT case too! -AK */ cpu_core_id[cpu] = phys_pkg_id(index_msb); if (c->x86_num_cores > 1) @@ -870,7 +869,7 @@ static void __init init_intel(struct cpu unsigned n; init_intel_cacheinfo(c); - n = c->x86_cpuid_level; + n = c->extended_cpuid_level; if (n >= 0x80000008) { unsigned eax = cpuid_eax(0x80000008); c->x86_virt_bits = (eax >> 8) & 0xff; @@ -919,7 +918,7 @@ void __init early_identify_cpu(struct cp c->x86_cache_alignment = c->x86_clflush_size; c->x86_num_cores = 1; c->x86_apicid = c == &boot_cpu_data ? 0 : c - cpu_data; - c->x86_cpuid_level = 0; + c->extended_cpuid_level = 0; memset(&c->x86_capability, 0, sizeof c->x86_capability); /* Get vendor name */ @@ -966,7 +965,7 @@ void __init identify_cpu(struct cpuinfo_ /* AMD-defined flags: level 0x80000001 */ xlvl = cpuid_eax(0x80000000); - c->x86_cpuid_level = xlvl; + c->extended_cpuid_level = xlvl; if ((xlvl & 0xffff0000) == 0x80000000) { if (xlvl >= 0x80000001) { c->x86_capability[1] = cpuid_edx(0x80000001); diff -puN include/asm-x86_64/processor.h~x86_64-rename-the-extended-cpuid-level-field include/asm-x86_64/processor.h --- 25/include/asm-x86_64/processor.h~x86_64-rename-the-extended-cpuid-level-field Thu Apr 7 15:11:31 2005 +++ 25-akpm/include/asm-x86_64/processor.h Thu Apr 7 15:11:31 2005 @@ -64,7 +64,7 @@ struct cpuinfo_x86 { __u8 x86_num_cores; __u8 x86_apicid; __u32 x86_power; - __u32 x86_cpuid_level; /* Max CPUID function supported */ + __u32 extended_cpuid_level; /* Max extended CPUID function supported */ unsigned long loops_per_jiffy; } ____cacheline_aligned; _