diff options
| author | Vincent Guittot <[email protected]> | 2020-02-24 09:52:14 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2020-02-24 11:36:34 +0100 |
| commit | 6d4d22468dae3d8757af9f8b81b848a76ef4409d (patch) | |
| tree | 459b7bb59bb0f22e7d6ed867f95123e76528946e /tools/perf/scripts/python | |
| parent | b2b2042b204796190af7c20069ab790a614c36d0 (diff) | |
sched/fair: Reorder enqueue/dequeue_task_fair path
The walk through the cgroup hierarchy during the enqueue/dequeue of a task
is split in 2 distinct parts for throttled cfs_rq without any added value
but making code less readable.
Change the code ordering such that everything related to a cfs_rq
(throttled or not) will be done in the same loop.
In addition, the same steps ordering is used when updating a cfs_rq:
- update_load_avg
- update_cfs_group
- update *h_nr_running
This reordering enables the use of h_nr_running in PELT algorithm.
No functional and performance changes are expected and have been noticed
during tests.
Signed-off-by: Vincent Guittot <[email protected]>
Signed-off-by: Mel Gorman <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: "Dietmar Eggemann <[email protected]>"
Acked-by: Peter Zijlstra <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Valentin Schneider <[email protected]>
Cc: Phil Auld <[email protected]>
Cc: Hillf Danton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions