diff options
author | Jiang Biao <benbjiang@tencent.com> | 2020-08-11 14:32:09 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-08-26 13:41:58 +0300 |
commit | 1724b95b92979a8ea8e55a4817d05b3bb7750958 (patch) | |
tree | 62e2091073064342e4114dcb4b099ba22b0423f6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | da0777d35f47892f359c3f73ea155870bb595700 (diff) | |
download | linux-1724b95b92979a8ea8e55a4817d05b3bb7750958.tar.xz |
sched/fair: Simplify the work when reweighting entity
The code in reweight_entity() can be simplified.
For a sched entity on the rq, the entity accounting can be replaced by
cfs_rq instantaneous load updates currently called from within the
entity accounting.
Even though an entity on the rq can't represent a task in
reweight_entity() (a task is always dequeued before calling this
function) and so the numa task accounting and the rq->cfs_tasks list
management of the entity accounting are never called, the redundant
cfs_rq->nr_running decrement/increment will be avoided.
Signed-off-by: Jiang Biao <benbjiang@tencent.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20200811113209.34057-1-benbjiang@tencent.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions