New upstream version 18.02
[deb_dpdk.git] / lib / librte_eal / common / include / arch / x86 / rte_pause.h
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 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #include "generic/rte_pause.h"
13
14 #include <emmintrin.h>
15 static inline void rte_pause(void)
16 {
17         _mm_pause();
18 }
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #endif /* _RTE_PAUSE_X86_H_ */