xref: /dpdk/lib/eal/loongarch/rte_power_intrinsics.c (revision 29631ee5c8906aba039c26d092137b09dbc949d8)
1*29631ee5SMin Zhou /* SPDX-License-Identifier: BSD-3-Clause
2*29631ee5SMin Zhou  * Copyright(c) 2022 Loongson Technology Corporation Limited
3*29631ee5SMin Zhou  */
4*29631ee5SMin Zhou 
5*29631ee5SMin Zhou #include <errno.h>
6*29631ee5SMin Zhou 
7*29631ee5SMin Zhou #include "rte_power_intrinsics.h"
8*29631ee5SMin Zhou 
9*29631ee5SMin Zhou /**
10*29631ee5SMin Zhou  * This function is not supported on LOONGARCH.
11*29631ee5SMin Zhou  */
12*29631ee5SMin Zhou int
rte_power_monitor(const struct rte_power_monitor_cond * pmc,const uint64_t tsc_timestamp)13*29631ee5SMin Zhou rte_power_monitor(const struct rte_power_monitor_cond *pmc,
14*29631ee5SMin Zhou 		const uint64_t tsc_timestamp)
15*29631ee5SMin Zhou {
16*29631ee5SMin Zhou 	RTE_SET_USED(pmc);
17*29631ee5SMin Zhou 	RTE_SET_USED(tsc_timestamp);
18*29631ee5SMin Zhou 
19*29631ee5SMin Zhou 	return -ENOTSUP;
20*29631ee5SMin Zhou }
21*29631ee5SMin Zhou 
22*29631ee5SMin Zhou /**
23*29631ee5SMin Zhou  * This function is not supported on LOONGARCH.
24*29631ee5SMin Zhou  */
25*29631ee5SMin Zhou int
rte_power_pause(const uint64_t tsc_timestamp)26*29631ee5SMin Zhou rte_power_pause(const uint64_t tsc_timestamp)
27*29631ee5SMin Zhou {
28*29631ee5SMin Zhou 	RTE_SET_USED(tsc_timestamp);
29*29631ee5SMin Zhou 
30*29631ee5SMin Zhou 	return -ENOTSUP;
31*29631ee5SMin Zhou }
32*29631ee5SMin Zhou 
33*29631ee5SMin Zhou /**
34*29631ee5SMin Zhou  * This function is not supported on LOONGARCH.
35*29631ee5SMin Zhou  */
36*29631ee5SMin Zhou int
rte_power_monitor_wakeup(const unsigned int lcore_id)37*29631ee5SMin Zhou rte_power_monitor_wakeup(const unsigned int lcore_id)
38*29631ee5SMin Zhou {
39*29631ee5SMin Zhou 	RTE_SET_USED(lcore_id);
40*29631ee5SMin Zhou 
41*29631ee5SMin Zhou 	return -ENOTSUP;
42*29631ee5SMin Zhou }
43*29631ee5SMin Zhou 
44*29631ee5SMin Zhou int
rte_power_monitor_multi(const struct rte_power_monitor_cond pmc[],const uint32_t num,const uint64_t tsc_timestamp)45*29631ee5SMin Zhou rte_power_monitor_multi(const struct rte_power_monitor_cond pmc[],
46*29631ee5SMin Zhou 		const uint32_t num, const uint64_t tsc_timestamp)
47*29631ee5SMin Zhou {
48*29631ee5SMin Zhou 	RTE_SET_USED(pmc);
49*29631ee5SMin Zhou 	RTE_SET_USED(num);
50*29631ee5SMin Zhou 	RTE_SET_USED(tsc_timestamp);
51*29631ee5SMin Zhou 
52*29631ee5SMin Zhou 	return -ENOTSUP;
53*29631ee5SMin Zhou }
54