File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10916,10 +10916,10 @@ static int newidle_balance(struct rq *this_rq, struct rq_flags *rf)
10916
10916
int continue_balancing = 1 ;
10917
10917
u64 domain_cost ;
10918
10918
10919
- if (this_rq -> avg_idle < curr_cost + sd -> max_newidle_lb_cost ) {
10920
- update_next_balance (sd , & next_balance );
10919
+ update_next_balance (sd , & next_balance );
10920
+
10921
+ if (this_rq -> avg_idle < curr_cost + sd -> max_newidle_lb_cost )
10921
10922
break ;
10922
- }
10923
10923
10924
10924
if (sd -> flags & SD_BALANCE_NEWIDLE ) {
10925
10925
@@ -10935,8 +10935,6 @@ static int newidle_balance(struct rq *this_rq, struct rq_flags *rf)
10935
10935
t0 = t1 ;
10936
10936
}
10937
10937
10938
- update_next_balance (sd , & next_balance );
10939
-
10940
10938
/*
10941
10939
* Stop searching for tasks to pull if there are
10942
10940
* now runnable tasks on this rq.
You can’t perform that action at this time.
0 commit comments