git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
power
/
rte_power_empty_poll.c
diff --git
a/lib/power/rte_power_empty_poll.c
b/lib/power/rte_power_empty_poll.c
index
8a2d60c
..
c4b5de9
100644
(file)
--- a/
lib/power/rte_power_empty_poll.c
+++ b/
lib/power/rte_power_empty_poll.c
@@
-72,8
+72,6
@@
enter_normal_state(struct priority_worker *poll_stats)
/* Clear the averages arrays and strs */
memset(poll_stats->edpi_av, 0, sizeof(poll_stats->edpi_av));
poll_stats->ec = 0;
/* Clear the averages arrays and strs */
memset(poll_stats->edpi_av, 0, sizeof(poll_stats->edpi_av));
poll_stats->ec = 0;
- memset(poll_stats->ppi_av, 0, sizeof(poll_stats->ppi_av));
- poll_stats->pc = 0;
poll_stats->cur_freq = MED;
poll_stats->iter_counter = 0;
poll_stats->cur_freq = MED;
poll_stats->iter_counter = 0;
@@
-91,8
+89,6
@@
enter_busy_state(struct priority_worker *poll_stats)
{
memset(poll_stats->edpi_av, 0, sizeof(poll_stats->edpi_av));
poll_stats->ec = 0;
{
memset(poll_stats->edpi_av, 0, sizeof(poll_stats->edpi_av));
poll_stats->ec = 0;
- memset(poll_stats->ppi_av, 0, sizeof(poll_stats->ppi_av));
- poll_stats->pc = 0;
poll_stats->cur_freq = HGH;
poll_stats->iter_counter = 0;
poll_stats->cur_freq = HGH;
poll_stats->iter_counter = 0;
@@
-216,10
+212,6
@@
update_stats(struct priority_worker *poll_stats)
s->empty_dequeues_prev = s->empty_dequeues;
s->empty_dequeues_prev = s->empty_dequeues;
- uint64_t ppi = s->num_dequeue_pkts - s->num_dequeue_pkts_prev;
-
- s->num_dequeue_pkts_prev = s->num_dequeue_pkts;
-
if (s->thresh[s->cur_freq].base_edpi < cur_edpi) {
/* edpi mean empty poll counter difference per interval */
if (s->thresh[s->cur_freq].base_edpi < cur_edpi) {
/* edpi mean empty poll counter difference per interval */
@@
-233,7
+225,6
@@
update_stats(struct priority_worker *poll_stats)
}
s->edpi_av[s->ec++ % BINS_AV] = cur_edpi;
}
s->edpi_av[s->ec++ % BINS_AV] = cur_edpi;
- s->ppi_av[s->pc++ % BINS_AV] = ppi;
for (j = 0; j < BINS_AV; j++) {
tot_edpi += s->edpi_av[j];
for (j = 0; j < BINS_AV; j++) {
tot_edpi += s->edpi_av[j];