devfreq: refactor set_target frequency function
authorLukasz Luba <l.luba@partner.samsung.com>
Thu, 15 Nov 2018 15:12:43 +0000 (16:12 +0100)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:57:41 +0000 (14:57 +0900)
commit9b93eb76b1aef5f36e29abf16ddc8456819fa50d
tree771a21761871e748dc8b248e983112f9d197c744
parentb975bac5e8f3720c12243d31859210551d58b861
devfreq: refactor set_target frequency function

The refactoring is needed for the new client in devfreq: suspend.
To avoid code duplication, move it to the new local function
devfreq_set_target.

The patch is based on earlier work by Tobias Jakobi.

Change-Id: I8515ba9cde9b957b47684ff36296bfeab54f76f6
Suggested-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Suggested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
drivers/devfreq/devfreq.c