diff options
author | Pierre Gondois <[email protected]> | 2021-05-04 10:07:42 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-05-12 11:43:23 +0200 |
commit | 8d4c97c105ca0735b0d972d1025cb150a7008451 (patch) | |
tree | 644bd9c3b94b8cc3e43ddb50ccc70c2539dfaa54 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | e5e678e4fea26d73444f4427cbbaeab4fa79ecee (diff) |
sched/fair: Only compute base_energy_pd if necessary
find_energy_efficient_cpu() searches the best energy CPU
to place a task on. To do so, the energy of each performance domain
(pd) is computed w/ and w/o the task placed on it.
The energy of a pd w/o the task (base_energy_pd) is computed prior
knowing whether a CPU is available in the pd.
Move the base_energy_pd computation after looping through the CPUs
of a pd and only compute it if at least one CPU is available.
Suggested-by: Xuewen Yan <[email protected]>
Signed-off-by: Pierre Gondois <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Lukasz Luba <[email protected]>
Reviewed-by: Dietmar Eggemann <[email protected]>
Reviewed-by: Vincent Donnefort <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions