DPDK  21.02.0
rte_power_intrinsics.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Intel Corporation
3  */
4 
5 #ifndef _RTE_POWER_INTRINSIC_H_
6 #define _RTE_POWER_INTRINSIC_H_
7 
8 #include <inttypes.h>
9 
10 #include <rte_compat.h>
11 #include <rte_spinlock.h>
12 
21 struct rte_power_monitor_cond {
22  volatile void *addr;
23  uint64_t val;
27  uint64_t mask;
28  uint8_t size;
34 };
35 
67 __rte_experimental
68 int rte_power_monitor(const struct rte_power_monitor_cond *pmc,
69  const uint64_t tsc_timestamp);
70 
87 __rte_experimental
88 int rte_power_monitor_wakeup(const unsigned int lcore_id);
89 
109 __rte_experimental
110 int rte_power_pause(const uint64_t tsc_timestamp);
111 
112 #endif /* _RTE_POWER_INTRINSIC_H_ */
__rte_experimental int rte_power_monitor_wakeup(const unsigned int lcore_id)
__rte_experimental int rte_power_pause(const uint64_t tsc_timestamp)
__rte_experimental int rte_power_monitor(const struct rte_power_monitor_cond *pmc, const uint64_t tsc_timestamp)