[PATCH] x86_64: remove redundant cpu_has_ definitions

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: <tglx@...>, <mingo@...>, <linux-kernel@...>
Date: Friday, January 18, 2008 - 1:25 am

On Fri, Jan 18, 2008 at 12:04:54AM -0500, H. Peter Anvin wrote:

Cool, guess that means a bunch of them can go...


PSE, PGE, XMM, XMM2, and FXSR are defined as required features, and
will be optimized to a constant at compile time. Remove their redundant
definitions.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

--- a/include/asm-x86/cpufeature.h
+++ b/include/asm-x86/cpufeature.h
@@ -195,21 +195,6 @@
 #undef  cpu_has_centaur_mcr
 #define cpu_has_centaur_mcr	0
 
-#undef  cpu_has_pse
-#define cpu_has_pse		1
-
-#undef  cpu_has_pge
-#define cpu_has_pge		1
-
-#undef  cpu_has_xmm
-#define cpu_has_xmm		1
-
-#undef  cpu_has_xmm2
-#define cpu_has_xmm2		1
-
-#undef  cpu_has_fxsr
-#define cpu_has_fxsr		1
-
 #endif /* CONFIG_X86_64 */
 
 #endif /* _ASM_X86_CPUFEATURE_H */
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: make clflush a required feature on x86_64, Kyle McMartin, (Fri Jan 18, 12:59 am)
Re: [PATCH] x86: make clflush a required feature on x86_64, H. Peter Anvin, (Fri Jan 18, 2:27 am)
Re: [PATCH] x86: make clflush a required feature on x86_64, H. Peter Anvin, (Fri Jan 18, 9:56 am)
Re: [PATCH] x86: make clflush a required feature on x86_64, H. Peter Anvin, (Fri Jan 18, 1:04 am)
[PATCH] x86_64: remove redundant cpu_has_ definitions, Kyle McMartin, (Fri Jan 18, 1:25 am)