Commit 4423af8
sched/fair: optimize the PLACE_LAG when se->vlag is zero
When PLACE_LAG is enabled, from the relationship:
vl_i = (W + w_i)*vl'_i / W
we know that if vl'_i(se->vlag) is zero, the vl_i is zero too.
So if se->vlag is zero, there is no need to waste cycles to
do the calculation.
Signed-off-by: Huang Shijie <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Christoph Lameter (Ampere) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]1 parent e31488c commit 4423af8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5280 | 5280 | | |
5281 | 5281 | | |
5282 | 5282 | | |
5283 | | - | |
| 5283 | + | |
5284 | 5284 | | |
5285 | 5285 | | |
5286 | 5286 | | |
| |||
0 commit comments