X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_power%2Frte_power_empty_poll.h;h=6ba0a3707406507b812b0d452cc80ca9f236ea8e;hb=fb5c100a14db85f205c37b08fb135153f75ca34f;hp=c1ad5c24dfba9feebc25d8c1f4b14b9dfa96eebb;hpb=450f0791312ccc82f5b28f8a93986936779f0a54;p=dpdk.git diff --git a/lib/librte_power/rte_power_empty_poll.h b/lib/librte_power/rte_power_empty_poll.h index c1ad5c24df..6ba0a37074 100644 --- a/lib/librte_power/rte_power_empty_poll.h +++ b/lib/librte_power/rte_power_empty_poll.h @@ -59,7 +59,7 @@ struct freq_threshold { uint32_t cur_train_iter; }; -/* Each Worder Thread Empty Poll Stats */ +/* Each Worker Thread Empty Poll Stats */ struct priority_worker { /* Current dequeue and throughput counts */ @@ -142,14 +142,16 @@ struct ep_policy { * - 0 on success. * - Negative on error. */ -int __rte_experimental +__rte_experimental +int rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb, struct ep_policy *policy); /** * Free the resource hold by power management system. */ -void __rte_experimental +__rte_experimental +void rte_power_empty_poll_stat_free(void); /** @@ -163,7 +165,8 @@ rte_power_empty_poll_stat_free(void); * - 0 on success. * - Negative on error. */ -int __rte_experimental +__rte_experimental +int rte_power_empty_poll_stat_update(unsigned int lcore_id); /** @@ -178,7 +181,8 @@ rte_power_empty_poll_stat_update(unsigned int lcore_id); * - 0 on success. * - Negative on error. */ -int __rte_experimental +__rte_experimental +int rte_power_poll_stat_update(unsigned int lcore_id, uint8_t nb_pkt); /** @@ -190,7 +194,8 @@ rte_power_poll_stat_update(unsigned int lcore_id, uint8_t nb_pkt); * @return * Current lcore empty poll counter value. */ -uint64_t __rte_experimental +__rte_experimental +uint64_t rte_power_empty_poll_stat_fetch(unsigned int lcore_id); /** @@ -202,7 +207,8 @@ rte_power_empty_poll_stat_fetch(unsigned int lcore_id); * @return * Current lcore valid poll counter value. */ -uint64_t __rte_experimental +__rte_experimental +uint64_t rte_power_poll_stat_fetch(unsigned int lcore_id); /** @@ -213,7 +219,8 @@ rte_power_poll_stat_fetch(unsigned int lcore_id); * @param arg * The customized parameter */ -void __rte_experimental +__rte_experimental +void rte_empty_poll_detection(struct rte_timer *tim, void *arg); #ifdef __cplusplus