eal/riscv: support RISC-V architecture
[dpdk.git] / lib / eal / riscv / rte_power_intrinsics.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2022 StarFive
3  * Copyright(c) 2022 SiFive
4  * Copyright(c) 2022 Semihalf
5  */
6
7 #include "rte_power_intrinsics.h"
8
9 /**
10  * This function is not supported on RISC-V 64
11  */
12 int
13 rte_power_monitor(const struct rte_power_monitor_cond *pmc,
14                   const uint64_t tsc_timestamp)
15 {
16         RTE_SET_USED(pmc);
17         RTE_SET_USED(tsc_timestamp);
18
19         return -ENOTSUP;
20 }
21
22 /**
23  * This function is not supported on RISC-V 64
24  */
25 int
26 rte_power_pause(const uint64_t tsc_timestamp)
27 {
28         RTE_SET_USED(tsc_timestamp);
29
30         return -ENOTSUP;
31 }
32
33 /**
34  * This function is not supported on RISC-V 64
35  */
36 int
37 rte_power_monitor_wakeup(const unsigned int lcore_id)
38 {
39         RTE_SET_USED(lcore_id);
40
41         return -ENOTSUP;
42 }
43
44 /**
45  * This function is not supported on RISC-V 64
46  */
47 int
48 rte_power_monitor_multi(const struct rte_power_monitor_cond pmc[],
49                         const uint32_t num, const uint64_t tsc_timestamp)
50 {
51         RTE_SET_USED(pmc);
52         RTE_SET_USED(num);
53         RTE_SET_USED(tsc_timestamp);
54
55         return -ENOTSUP;
56 }