PM / devfreq: Unify frequency change to devfreq_update_target func
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 7 Oct 2020 13:02:39 +0000 (22:02 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 26 Oct 2020 01:52:37 +0000 (10:52 +0900)
commitb4365423bb7adf9feb4659126eaec374dfbde806
tree564436e9764d9d5a938c41befdab77fb826b699b
parent4281461c01f702f9427554718988b5e8fbfd64fb
PM / devfreq: Unify frequency change to devfreq_update_target func

The update_devfreq() and update_passive_devfreq() have the duplicate
code when changing the target frequency on final stage. So, unify
frequency change code to devfreq_update_target() to remove the
duplicate code and to centralize the frequency change code.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c
drivers/devfreq/governor.h
drivers/devfreq/governor_passive.c