Browse Source

Fix random strategy

Serj Kalichev 10 years ago
parent
commit
1156bd1ae2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      balance.c

+ 3 - 2
balance.c

@@ -327,9 +327,10 @@ int choose_irqs_to_move(lub_list_t *cpus, lub_list_t *balance_irqs,
 				irq_to_move = irq;
 			}
 		} else if (strategy == BIRQ_CHOOSE_RND) {
-			if (current == choose)
+			if (current == choose) {
 				irq_to_move = irq;
-			break;
+				break;
+			}
 		}
 		current++;
 	}