mirror of https://github.com/F-Stack/f-stack.git
25 lines
341 B
C
25 lines
341 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2017 Cavium, Inc
|
|
*/
|
|
|
|
#ifndef _RTE_PAUSE_X86_H_
|
|
#define _RTE_PAUSE_X86_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "generic/rte_pause.h"
|
|
|
|
#include <emmintrin.h>
|
|
static inline void rte_pause(void)
|
|
{
|
|
_mm_pause();
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _RTE_PAUSE_X86_H_ */
|