1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2021 Intel Corporation 3 */ 4 5 #include <errno.h> 6 7 #include "rte_power_intrinsics.h" 8 9 /** 10 * This function is not supported on PPC64. 11 */ 12 int rte_power_monitor(const struct rte_power_monitor_cond * pmc,const uint64_t tsc_timestamp)13rte_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 PPC64. 24 */ 25 int rte_power_pause(const uint64_t tsc_timestamp)26rte_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 PPC64. 35 */ 36 int rte_power_monitor_wakeup(const unsigned int lcore_id)37rte_power_monitor_wakeup(const unsigned int lcore_id) 38 { 39 RTE_SET_USED(lcore_id); 40 41 return -ENOTSUP; 42 } 43 44 int rte_power_monitor_multi(const struct rte_power_monitor_cond pmc[],const uint32_t num,const uint64_t tsc_timestamp)45rte_power_monitor_multi(const struct rte_power_monitor_cond pmc[], 46 const uint32_t num, const uint64_t tsc_timestamp) 47 { 48 RTE_SET_USED(pmc); 49 RTE_SET_USED(num); 50 RTE_SET_USED(tsc_timestamp); 51 52 return -ENOTSUP; 53 } 54