diff options
author | Rafael J. Wysocki <[email protected]> | 2016-02-15 02:15:50 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2016-03-09 14:41:03 +0100 |
commit | 679b8fe43a6b723787cae1d9599ed776d7ce238b (patch) | |
tree | 27f6c7625fc2baf59e660fe744a842a4ef44d1d4 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | e4db2813d2e558b6b6bee464308678a57732b390 (diff) |
cpufreq: governor: Fix nice contribution computation in dbs_check_cpu()
The contribution of the CPU nice time to the idle time in dbs_check_cpu()
is computed in a bogus way, as the code may subtract current and previous
nice values for different CPUs.
That doesn't matter for cases when cpufreq policies are not shared,
but may lead to problems otherwise.
Fix the computation and simplify it to avoid taking unnecessary steps.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions