eal: fix MCS lock and ticketlock headers install
[dpdk.git] / lib / librte_eal / ppc / include / rte_power_intrinsics.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Intel Corporation
3  */
4
5 #ifndef _RTE_POWER_INTRINSIC_PPC_H_
6 #define _RTE_POWER_INTRINSIC_PPC_H_
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #include <rte_common.h>
13
14 #include "generic/rte_power_intrinsics.h"
15
16 /**
17  * This function is not supported on PPC64.
18  */
19 static inline void
20 rte_power_monitor(const volatile void *p, const uint64_t expected_value,
21                 const uint64_t value_mask, const uint64_t tsc_timestamp,
22                 const uint8_t data_sz)
23 {
24         RTE_SET_USED(p);
25         RTE_SET_USED(expected_value);
26         RTE_SET_USED(value_mask);
27         RTE_SET_USED(tsc_timestamp);
28         RTE_SET_USED(data_sz);
29 }
30
31 /**
32  * This function is not supported on PPC64.
33  */
34 static inline void
35 rte_power_monitor_sync(const volatile void *p, const uint64_t expected_value,
36                 const uint64_t value_mask, const uint64_t tsc_timestamp,
37                 const uint8_t data_sz, rte_spinlock_t *lck)
38 {
39         RTE_SET_USED(p);
40         RTE_SET_USED(expected_value);
41         RTE_SET_USED(value_mask);
42         RTE_SET_USED(tsc_timestamp);
43         RTE_SET_USED(lck);
44         RTE_SET_USED(data_sz);
45 }
46
47 /**
48  * This function is not supported on PPC64.
49  */
50 static inline void
51 rte_power_pause(const uint64_t tsc_timestamp)
52 {
53         RTE_SET_USED(tsc_timestamp);
54 }
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif /* _RTE_POWER_INTRINSIC_PPC_H_ */