Commit 0635490
sched/fair: Move calculate of avg_load to a better location
In calculate_imbalance function, when the value of local->avg_load is
greater than or equal to busiest->avg_load, the calculated sds->avg_load is
not used. So this calculation can be placed in a more appropriate position.
Signed-off-by: zgpeng <zgpeng@tencent.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Samuel Liao <samuelliao@tencent.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/1649239025-10010-1-git-send-email-zgpeng@tencent.com1 parent e3f73ec commit 0635490
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9460 | 9460 | | |
9461 | 9461 | | |
9462 | 9462 | | |
9463 | | - | |
9464 | | - | |
9465 | 9463 | | |
9466 | 9464 | | |
9467 | 9465 | | |
| |||
9470 | 9468 | | |
9471 | 9469 | | |
9472 | 9470 | | |
| 9471 | + | |
| 9472 | + | |
| 9473 | + | |
9473 | 9474 | | |
9474 | 9475 | | |
9475 | 9476 | | |
| |||
0 commit comments