diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-10-13 13:39:01 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-10-28 09:20:04 +0100 |
commit | 083701b13c79a908fb400dc24aaa80aad07ac462 (patch) | |
tree | 6d7b18c3bbdab77988aff701366c20513420966c /drivers/cpufreq/pmac32-cpufreq.c | |
parent | 51443fbf3d2cde16011b994252c8004ebcd66fb0 (diff) | |
download | talos-op-linux-083701b13c79a908fb400dc24aaa80aad07ac462.tar.gz talos-op-linux-083701b13c79a908fb400dc24aaa80aad07ac462.zip |
cpufreq: ondemand: Drop unnecessary locks from update_sampling_rate()
'timer_mutex' is required to sync work-handlers of policy->cpus.
update_sampling_rate() is just canceling the works and queuing them
again. This isn't protecting anything at all in update_sampling_rate()
and is not gonna be of any use.
Even if a work-handler is already running for a CPU,
cancel_delayed_work_sync() will wait for it to finish.
Drop these unnecessary locks.
Reviewed-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/pmac32-cpufreq.c')
0 files changed, 0 insertions, 0 deletions