Commit 3229adb
sched/fair: Do not compute overloaded status unnecessarily during lb
Only set sg_overloaded when computing sg_lb_stats() at the highest sched
domain since rd->overloaded status is updated only when load balancing
at the highest domain. While at it, move setting of sg_overloaded below
idle_cpu() check since an idle CPU can never be overloaded.
Signed-off-by: K Prateek Nayak <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Reviewed-by: Shrikanth Hegde <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 0ac1ee9 commit 3229adb
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10410 | 10410 | | |
10411 | 10411 | | |
10412 | 10412 | | |
| 10413 | + | |
10413 | 10414 | | |
10414 | 10415 | | |
10415 | 10416 | | |
| |||
10427 | 10428 | | |
10428 | 10429 | | |
10429 | 10430 | | |
10430 | | - | |
10431 | | - | |
10432 | | - | |
10433 | 10431 | | |
10434 | 10432 | | |
10435 | 10433 | | |
| |||
10442 | 10440 | | |
10443 | 10441 | | |
10444 | 10442 | | |
| 10443 | + | |
| 10444 | + | |
| 10445 | + | |
| 10446 | + | |
10445 | 10447 | | |
10446 | 10448 | | |
10447 | 10449 | | |
| |||
0 commit comments