f-stack/dpdk/lib/librte_eal/common/include/generic/rte_pause.h

24 lines
447 B
C
Raw Normal View History

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
*/
#ifndef _RTE_PAUSE_H_
#define _RTE_PAUSE_H_
2017-04-21 10:43:26 +00:00
/**
* @file
*
* CPU pause operation.
*
*/
2017-04-21 10:43:26 +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
#endif /* _RTE_PAUSE_H_ */