diff options
Diffstat (limited to 'include/asm-x86_64/processor.h')
-rw-r--r-- | include/asm-x86_64/processor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-x86_64/processor.h b/include/asm-x86_64/processor.h index a8321999448f..c6461c16edbf 100644 --- a/include/asm-x86_64/processor.h +++ b/include/asm-x86_64/processor.h | |||
@@ -375,13 +375,13 @@ struct extended_sigtable { | |||
375 | #define ASM_NOP_MAX 8 | 375 | #define ASM_NOP_MAX 8 |
376 | 376 | ||
377 | /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ | 377 | /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ |
378 | extern inline void rep_nop(void) | 378 | static inline void rep_nop(void) |
379 | { | 379 | { |
380 | __asm__ __volatile__("rep;nop": : :"memory"); | 380 | __asm__ __volatile__("rep;nop": : :"memory"); |
381 | } | 381 | } |
382 | 382 | ||
383 | /* Stop speculative execution */ | 383 | /* Stop speculative execution */ |
384 | extern inline void sync_core(void) | 384 | static inline void sync_core(void) |
385 | { | 385 | { |
386 | int tmp; | 386 | int tmp; |
387 | asm volatile("cpuid" : "=a" (tmp) : "0" (1) : "ebx","ecx","edx","memory"); | 387 | asm volatile("cpuid" : "=a" (tmp) : "0" (1) : "ebx","ecx","edx","memory"); |