1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2017 Cavium, Inc 3 */ 4 5 #ifndef _RTE_PAUSE_X86_H_ 6 #define _RTE_PAUSE_X86_H_ 7 8 #include "generic/rte_pause.h" 9 10 #include <emmintrin.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 static inline void rte_pause(void) 17 { 18 _mm_pause(); 19 } 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif /* _RTE_PAUSE_X86_H_ */ 26