aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorPeng Wang <[email protected]>2020-06-16 14:04:07 +0800
committerPeter Zijlstra <[email protected]>2020-06-25 13:45:44 +0200
commit423d02e1463b21109106f52d94f7396b63731f3b (patch)
tree1480796f2df9165105ef7ef86ba167d52c7c2864 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentaa93cd53bc1b91b5f99c7b55e3dcc1ac98e99558 (diff)
sched/fair: Optimize dequeue_task_fair()
While looking at enqueue_task_fair and dequeue_task_fair, it occurred to me that dequeue_task_fair can also be optimized as Vincent described in commit 7d148be69e3a ("sched/fair: Optimize enqueue_task_fair()"). When encountering throttled cfs_rq, dequeue_throttle label can ensure se not to be NULL, and rq->nr_running remains unchanged, so we can also skip the early balance check. Signed-off-by: Peng Wang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Link: https://lkml.kernel.org/r/701eef9a40de93dcf5fe7063fd607bca5db38e05.1592287263.git.rocking@linux.alibaba.com
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions