diff options
author | 2023-09-12 06:10:56 +0000 | |
---|---|---|
committer | 2023-10-06 22:01:26 +0200 | |
commit | 285189c57391360701af348cd57ca0ba8cbf7ff6 (patch) | |
tree | 4b3d643adf073d191e41598df3f226fd116d349d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpufreq: conservative: Simplify the condition of storing 'down_threshold' (diff) | |
download | wireguard-linux-285189c57391360701af348cd57ca0ba8cbf7ff6.tar.xz wireguard-linux-285189c57391360701af348cd57ca0ba8cbf7ff6.zip |
cpufreq: userspace: Use fine-grained mutex in userspace governor
The userspace governor currently uses a big global mutex to avoid the
race condition on the governor_data field of cpufreq_policy structure.
This leads to a low concurrency if multiple userspace applications are
trying to set the speed of different policies at the same time.
Introduce a per-policy mutex to allow the updating of different policies
to be performed concurrently, improving overall concurrency.
Signed-off-by: Liao Chang <liaochang1@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions