2018-12-06 14:17:51 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2017 Cavium, Inc
|
2017-04-21 10:43:26 +00:00
|
|
|
*/
|
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
#ifndef _RTE_PAUSE_H_
|
|
|
|
#define _RTE_PAUSE_H_
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
* CPU pause operation.
|
|
|
|
*
|
|
|
|
*/
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
/**
|
|
|
|
* Pause CPU execution for a short while
|
|
|
|
*
|
|
|
|
* This call is intended for tight loops which poll a shared resource or wait
|
|
|
|
* for an event. A short pause within the loop may reduce the power consumption.
|
|
|
|
*/
|
|
|
|
static inline void rte_pause(void);
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
#endif /* _RTE_PAUSE_H_ */
|