X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_power%2Frte_power_empty_poll.c;h=0a8024ddca4b06177196cc8943f0f0c6b72f29ab;hb=92c083915ade012771dfe588e448987ff9da0bc0;hp=e6145462f725177c218568457df05e239958a5b8;hpb=31259a337613c7492af9c2eda6040fb0eb705abb;p=dpdk.git diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c index e6145462f7..0a8024ddca 100644 --- a/lib/librte_power/rte_power_empty_poll.c +++ b/lib/librte_power/rte_power_empty_poll.c @@ -156,11 +156,8 @@ update_training_stats(struct priority_worker *poll_stats, { RTE_SET_USED(specific_freq); - char pfi_str[32]; uint64_t p0_empty_deq; - sprintf(pfi_str, "%02d", freq); - if (poll_stats->cur_freq == freq && poll_stats->thresh[freq].trained == false) { if (poll_stats->thresh[freq].cur_train_iter == 0) { @@ -364,7 +361,7 @@ empty_poll_training(struct priority_worker *poll_stats, return 0; } -void __rte_experimental +void rte_empty_poll_detection(struct rte_timer *tim, void *arg) { @@ -405,7 +402,7 @@ rte_empty_poll_detection(struct rte_timer *tim, void *arg) } -int __rte_experimental +int rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb, struct ep_policy *policy) { @@ -464,7 +461,7 @@ rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb, return 0; } -void __rte_experimental +void rte_power_empty_poll_stat_free(void) { @@ -474,7 +471,7 @@ rte_power_empty_poll_stat_free(void) rte_free(ep_params); } -int __rte_experimental +int rte_power_empty_poll_stat_update(unsigned int lcore_id) { struct priority_worker *poll_stats; @@ -492,7 +489,7 @@ rte_power_empty_poll_stat_update(unsigned int lcore_id) return 0; } -int __rte_experimental +int rte_power_poll_stat_update(unsigned int lcore_id, uint8_t nb_pkt) { @@ -512,7 +509,7 @@ rte_power_poll_stat_update(unsigned int lcore_id, uint8_t nb_pkt) } -uint64_t __rte_experimental +uint64_t rte_power_empty_poll_stat_fetch(unsigned int lcore_id) { struct priority_worker *poll_stats; @@ -528,7 +525,7 @@ rte_power_empty_poll_stat_fetch(unsigned int lcore_id) return poll_stats->empty_dequeues; } -uint64_t __rte_experimental +uint64_t rte_power_poll_stat_fetch(unsigned int lcore_id) { struct priority_worker *poll_stats;