New upstream version 18.02
[deb_dpdk.git] / lib / librte_eal / common / include / generic / rte_pause.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2017 Cavium, Inc
3  */
4
5 #ifndef _RTE_PAUSE_H_
6 #define _RTE_PAUSE_H_
7
8 /**
9  * @file
10  *
11  * CPU pause operation.
12  *
13  */
14
15 /**
16  * Pause CPU execution for a short while
17  *
18  * This call is intended for tight loops which poll a shared resource or wait
19  * for an event. A short pause within the loop may reduce the power consumption.
20  */
21 static inline void rte_pause(void);
22
23 #endif /* _RTE_PAUSE_H_ */