Messages in this thread Patch in this message | | | Date | Fri, 18 Jan 2008 00:25:22 -0500 | From | Kyle McMartin <> | Subject | [PATCH] x86_64: remove redundant cpu_has_ definitions |
| |
On Fri, Jan 18, 2008 at 12:04:54AM -0500, H. Peter Anvin wrote: > Unnecessary. These overrides are only needed for the anticases (known to > be zero) or for some special hacks. >
Cool, guess that means a bunch of them can go...
> Stuff that have proper CPUID bits get these defined as constants via the > REQUIRED_MASK macros. >
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 */
| |