diff options
Diffstat (limited to 'arch/x86/include/asm/alternative.h')
-rw-r--r-- | arch/x86/include/asm/alternative.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index 92a9033c14d1..03b6bb5394a0 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h | |||
@@ -42,9 +42,6 @@ | |||
42 | #define LOCK_PREFIX "" | 42 | #define LOCK_PREFIX "" |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | /* This must be included *after* the definition of LOCK_PREFIX */ | ||
46 | #include <asm/cpufeature.h> | ||
47 | |||
48 | struct alt_instr { | 45 | struct alt_instr { |
49 | u8 *instr; /* original instruction */ | 46 | u8 *instr; /* original instruction */ |
50 | u8 *replacement; | 47 | u8 *replacement; |
@@ -99,6 +96,12 @@ static inline int alternatives_text_reserved(void *start, void *end) | |||
99 | ".previous" | 96 | ".previous" |
100 | 97 | ||
101 | /* | 98 | /* |
99 | * This must be included *after* the definition of ALTERNATIVE due to | ||
100 | * <asm/arch_hweight.h> | ||
101 | */ | ||
102 | #include <asm/cpufeature.h> | ||
103 | |||
104 | /* | ||
102 | * Alternative instructions for different CPU types or capabilities. | 105 | * Alternative instructions for different CPU types or capabilities. |
103 | * | 106 | * |
104 | * This allows to use optimized instructions even on generic binary | 107 | * This allows to use optimized instructions even on generic binary |