irqbalance: remove reset_counts
reset_counts() clears the current count of all interrupts in the interrupts_db, but it is currently only used right before we clear the interrupts_db so it is unnecessary. Signed-off-by: Shawn Bohrer <sbohrer@rgmadvisors.com> Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
parent
4540a34b72
commit
078a6588fa
|
@ -356,7 +356,6 @@ int main(int argc, char** argv)
|
|||
need_rescan = 0;
|
||||
cycle_count = 0;
|
||||
log(TO_CONSOLE, LOG_INFO, "Rescanning cpu topology \n");
|
||||
reset_counts();
|
||||
clear_work_stats();
|
||||
|
||||
free_object_tree();
|
||||
|
|
|
@ -34,7 +34,6 @@ extern void set_msi_interrupt_numa(int number);
|
|||
extern GList *rebalance_irq_list;
|
||||
|
||||
void update_migration_status(void);
|
||||
void reset_counts(void);
|
||||
void dump_workloads(void);
|
||||
void sort_irq_list(GList **list);
|
||||
void calculate_placement(void);
|
||||
|
|
13
irqlist.c
13
irqlist.c
|
@ -188,19 +188,6 @@ void update_migration_status(void)
|
|||
find_overloaded_objs(numa_nodes, &info);
|
||||
}
|
||||
|
||||
|
||||
static void reset_irq_count(struct irq_info *info, void *unused __attribute__((unused)))
|
||||
{
|
||||
info->last_irq_count = info->irq_count;
|
||||
info->irq_count = 0;
|
||||
}
|
||||
|
||||
void reset_counts(void)
|
||||
{
|
||||
for_each_irq(NULL, reset_irq_count, NULL);
|
||||
}
|
||||
|
||||
|
||||
static void dump_workload(struct irq_info *info, void *unused __attribute__((unused)))
|
||||
{
|
||||
log(TO_CONSOLE, LOG_INFO, "Interrupt %i node_num %d (class %s) has workload %lu \n",
|
||||
|
|
Loading…
Reference in a new issue