eal: change power intrinsics API
[dpdk.git] / lib / librte_eal / ppc / rte_power_intrinsics.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 Intel Corporation
3  */
4
5 #include "rte_power_intrinsics.h"
6
7 /**
8  * This function is not supported on PPC64.
9  */
10 int
11 rte_power_monitor(const struct rte_power_monitor_cond *pmc,
12                 const uint64_t tsc_timestamp)
13 {
14         RTE_SET_USED(pmc);
15         RTE_SET_USED(tsc_timestamp);
16
17         return -ENOTSUP;
18 }
19
20 /**
21  * This function is not supported on PPC64.
22  */
23 int
24 rte_power_monitor_sync(const struct rte_power_monitor_cond *pmc,
25                 const uint64_t tsc_timestamp, rte_spinlock_t *lck)
26 {
27         RTE_SET_USED(pmc);
28         RTE_SET_USED(tsc_timestamp);
29         RTE_SET_USED(lck);
30
31         return -ENOTSUP;
32 }
33
34 /**
35  * This function is not supported on PPC64.
36  */
37 int
38 rte_power_pause(const uint64_t tsc_timestamp)
39 {
40         RTE_SET_USED(tsc_timestamp);
41
42         return -ENOTSUP;
43 }