devfreq: Remove mutex deadlock caused by modification of update_devfreq()
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Mon, 21 Sep 2015 07:43:26 +0000 (16:43 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:48:11 +0000 (13:48 +0900)
commited4be793e5a8b1c60003946bcb2ebfcb37a60794
tree6aa1fd305c7614165302df5146ebafede07dc1a5
parent751b489dbfecf78a02632320bb7ffd1aace6b453
devfreq: Remove mutex deadlock caused by modification of update_devfreq()

By commit 'd70aa318 PM: devfreq: Add the prototype of update_devfreq()~',
mutex locking is moved into update_devfreq(). So that any attempts to
acquire the mutex in outside causes deadlock. This patch removes mutex
lockings from where can cause deadlock potentially.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
drivers/devfreq/governor_performance.c
drivers/devfreq/governor_powersave.c
drivers/devfreq/governor_userspace.c