diff options
author | Vincent Guittot <[email protected]> | 2020-05-13 15:55:28 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-05-19 20:34:10 +0200 |
commit | 39f23ce07b9355d05a64ae303ce20d1c4b92b957 (patch) | |
tree | 1a25ddc3af8fa07845312c84be06e3a96e2b4755 /tools/lib/bpf/bpf_prog_linfo.c | |
parent | ad32bb41fca67936c0c1d6d0bdd6d3e2e9c5432f (diff) |
sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list
Although not exactly identical, unthrottle_cfs_rq() and enqueue_task_fair()
are quite close and follow the same sequence for enqueuing an entity in the
cfs hierarchy. Modify unthrottle_cfs_rq() to use the same pattern as
enqueue_task_fair(). This fixes a problem already faced with the latter and
add an optimization in the last for_each_sched_entity loop.
Fixes: fe61468b2cb (sched/fair: Fix enqueue_task_fair warning)
Reported-by Tao Zhou <[email protected]>
Signed-off-by: Vincent Guittot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Phil Auld <[email protected]>
Reviewed-by: Ben Segall <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions