Skip to content

Commit af0fa6f

Browse files
suryasaimadhuH. Peter Anvin
authored andcommitted
x86, cpu: Kill cpu_has_mp
It was used only for checking for some K7s which didn't have MP support, see http://www.hardwaresecrets.com/article/How-to-Transform-an-Athlon-XP-into-an-Athlon-MP/24 and it was unconditionally set on 64-bit for no reason. Kill it. Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/1403609105-8332-4-git-send-email-bp@alien8.de Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 parent 26bfa5f commit af0fa6f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎arch/x86/include/asm/cpufeature.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
315315
#define cpu_has_avx boot_cpu_has(X86_FEATURE_AVX)
316316
#define cpu_has_avx2 boot_cpu_has(X86_FEATURE_AVX2)
317317
#define cpu_has_ht boot_cpu_has(X86_FEATURE_HT)
318-
#define cpu_has_mp boot_cpu_has(X86_FEATURE_MP)
319318
#define cpu_has_nx boot_cpu_has(X86_FEATURE_NX)
320319
#define cpu_has_k6_mtrr boot_cpu_has(X86_FEATURE_K6_MTRR)
321320
#define cpu_has_cyrix_arr boot_cpu_has(X86_FEATURE_CYRIX_ARR)
@@ -362,9 +361,6 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
362361
#undef cpu_has_pae
363362
#define cpu_has_pae ___BUG___
364363

365-
#undef cpu_has_mp
366-
#define cpu_has_mp 1
367-
368364
#undef cpu_has_k6_mtrr
369365
#define cpu_has_k6_mtrr 0
370366

0 commit comments

Comments
 (0)