diff options
author | Liao Chang <[email protected]> | 2023-09-12 06:10:56 +0000 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2023-10-06 22:01:26 +0200 |
commit | 285189c57391360701af348cd57ca0ba8cbf7ff6 (patch) | |
tree | 4b3d643adf073d191e41598df3f226fd116d349d /tools/perf/util/trace-event-scripting.c | |
parent | 842c34a2668f68ebe15d0fc9dc19d33733bb428d (diff) |
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 <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions