Browse Source

Choose IRQ to move anyway (if balance_irq is not empty)

Serj Kalichev 9 years ago
parent
commit
0fcb6e8995
1 changed files with 4 additions and 6 deletions
  1. 4 6
      birq.c

+ 4 - 6
birq.c

@@ -181,12 +181,10 @@ int main(int argc, char **argv)
 		/* Gather statistics on CPU load and number of interrupts. */
 		gather_statistics(cpus, irqs);
 		show_statistics(cpus, opts->verbose);
-		/* Choose IRQ to move to another CPU.
-		   Don't choose IRQ if we already have new IRQs to balance */
-		if (lub_list_len(balance_irqs) == 0) {
-			choose_irqs_to_move(cpus, balance_irqs,
-				opts->threshold, opts->strategy);
-		}
+		/* Choose IRQ to move to another CPU. */
+		choose_irqs_to_move(cpus, balance_irqs,
+			opts->threshold, opts->strategy);
+
 		/* If nothing to balance */
 		if (lub_list_len(balance_irqs) != 0) {
 			/* Set short interval to make balancing faster. */