[PATCH] x86_64: Remove unused AMD K8 C stepping flag

X86_FEATURE_K8_C was a synthetic Linux CPUID flag that was used for some
code optimizations in Opteron C stepping or later. But support for pre C
stepping optimizations has been removed, so this isn't needed anymore.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Andi Kleen and committed by Linus Torvalds dd52d642 2e664aa2

+1 -7
-6
arch/x86_64/kernel/setup.c
··· 879 879 static int __init init_amd(struct cpuinfo_x86 *c) 880 880 { 881 881 int r; 882 - int level; 883 882 884 883 #ifdef CONFIG_SMP 885 884 unsigned long value; ··· 901 902 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway */ 902 903 clear_bit(0*32+31, &c->x86_capability); 903 904 904 - /* C-stepping K8? */ 905 - level = cpuid_eax(1); 906 - if ((level >= 0x0f48 && level < 0x0f50) || level >= 0x0f58) 907 - set_bit(X86_FEATURE_K8_C, &c->x86_capability); 908 - 909 905 r = get_model_name(c); 910 906 if (!r) { 911 907 switch (c->x86) {
+1 -1
include/asm-x86_64/cpufeature.h
··· 61 61 #define X86_FEATURE_K6_MTRR (3*32+ 1) /* AMD K6 nonstandard MTRRs */ 62 62 #define X86_FEATURE_CYRIX_ARR (3*32+ 2) /* Cyrix ARRs (= MTRRs) */ 63 63 #define X86_FEATURE_CENTAUR_MCR (3*32+ 3) /* Centaur MCRs (= MTRRs) */ 64 - #define X86_FEATURE_K8_C (3*32+ 4) /* C stepping K8 */ 64 + /* 4 free */ 65 65 #define X86_FEATURE_CONSTANT_TSC (3*32+5) /* TSC runs at constant rate */ 66 66 #define X86_FEATURE_SYNC_RDTSC (3*32+6) /* RDTSC syncs CPU core */ 67 67