diff options
author | Liao Chang <liaochang1@huawei.com> | 2023-09-12 06:10:56 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-06 22:01:26 +0200 |
commit | 285189c57391360701af348cd57ca0ba8cbf7ff6 (patch) | |
tree | 4b3d643adf073d191e41598df3f226fd116d349d /drivers/cdx/controller/cdx_controller.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 <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 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions