diff options
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/cpufeature.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index bb9b258d60e7..516903b98e06 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h | |||
@@ -250,8 +250,15 @@ | |||
250 | #include <asm/asm.h> | 250 | #include <asm/asm.h> |
251 | #include <linux/bitops.h> | 251 | #include <linux/bitops.h> |
252 | 252 | ||
253 | #ifdef CONFIG_X86_FEATURE_NAMES | ||
253 | extern const char * const x86_cap_flags[NCAPINTS*32]; | 254 | extern const char * const x86_cap_flags[NCAPINTS*32]; |
254 | extern const char * const x86_power_flags[32]; | 255 | extern const char * const x86_power_flags[32]; |
256 | #define X86_CAP_FMT "%s" | ||
257 | #define x86_cap_flag(flag) x86_cap_flags[flag] | ||
258 | #else | ||
259 | #define X86_CAP_FMT "%d:%d" | ||
260 | #define x86_cap_flag(flag) ((flag) >> 5), ((flag) & 31) | ||
261 | #endif | ||
255 | 262 | ||
256 | /* | 263 | /* |
257 | * In order to save room, we index into this array by doing | 264 | * In order to save room, we index into this array by doing |