Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpufreq: ondemand: Fix locking issue in store_powersave_bias
store_powersave_bias takes timer_mutex before calling dbs_timer_exit which tries to cancel the delayed work do_dbs_timer which in turn tries to take the same lock. This can cause a lock recursion under the race condition where can cancel_delayed_work_sync is called when the work has already started executing. This can be avoided by taking that lock after calling dbs_timer_exit. Change-Id: I7f862286e66f1ddc1e13e4eeee369dd188fc10d5 Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
- Loading branch information