diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:31:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:48 -0500 |
commit | 863aec860259f287797f886c3f373389cdafc8e3 (patch) | |
tree | 38a94c0f370c8b5bdd965c9ddb3635a965c0dbe7 /include | |
parent | c269f19617f508cc5c29c0b064c1a437d7011a46 (diff) |
x86: x86-64 wired cpu_has macros
This adds hard-wired definitions for the remaining cpu_has_* macros
that correspond to flags required-features.h demands are set for
64-bit. Using these can efficiently avoid some #ifdef's when
merging 32-bit and 64-bit code together.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/cpufeature.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-x86/cpufeature.h b/include/asm-x86/cpufeature.h index 87dd900154d1..75e2f78a7fda 100644 --- a/include/asm-x86/cpufeature.h +++ b/include/asm-x86/cpufeature.h | |||
@@ -192,9 +192,21 @@ | |||
192 | #undef cpu_has_centaur_mcr | 192 | #undef cpu_has_centaur_mcr |
193 | #define cpu_has_centaur_mcr 0 | 193 | #define cpu_has_centaur_mcr 0 |
194 | 194 | ||
195 | #undef cpu_has_pse | ||
196 | #define cpu_has_pse 1 | ||
197 | |||
195 | #undef cpu_has_pge | 198 | #undef cpu_has_pge |
196 | #define cpu_has_pge 1 | 199 | #define cpu_has_pge 1 |
197 | 200 | ||
201 | #undef cpu_has_xmm | ||
202 | #define cpu_has_xmm 1 | ||
203 | |||
204 | #undef cpu_has_xmm2 | ||
205 | #define cpu_has_xmm2 1 | ||
206 | |||
207 | #undef cpu_has_fxsr | ||
208 | #define cpu_has_fxsr 1 | ||
209 | |||
198 | #endif /* CONFIG_X86_64 */ | 210 | #endif /* CONFIG_X86_64 */ |
199 | 211 | ||
200 | #endif /* _ASM_X86_CPUFEATURE_H */ | 212 | #endif /* _ASM_X86_CPUFEATURE_H */ |