diff options
author | 2016-02-15 02:13:42 +0100 | |
---|---|---|
committer | 2016-03-09 14:41:03 +0100 | |
commit | e4db2813d2e558b6b6bee464308678a57732b390 (patch) | |
tree | 2cd9422569ce684971136492b12323d40c3e0a26 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | cpufreq: governor: Simplify gov_cancel_work() slightly (diff) | |
download | linux-dev-e4db2813d2e558b6b6bee464308678a57732b390.tar.xz linux-dev-e4db2813d2e558b6b6bee464308678a57732b390.zip |
cpufreq: governor: Avoid atomic operations in hot paths
Rework the handling of work items by dbs_update_util_handler() and
dbs_work_handler() so the former (which is executed in scheduler
paths) only uses atomic operations when absolutely necessary. That
is, when the policy is shared and dbs_update_util_handler() has
already decided that this is the time to queue up a work item.
In particular, this avoids the atomic ops entirely on platforms where
policy objects are never shared.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions