summaryrefslogtreecommitdiff
path: root/drivers/devfreq/governor.h
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2020-10-07 22:02:39 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2020-10-26 10:52:37 +0900
commitb4365423bb7adf9feb4659126eaec374dfbde806 (patch)
tree564436e9764d9d5a938c41befdab77fb826b699b /drivers/devfreq/governor.h
parent4281461c01f702f9427554718988b5e8fbfd64fb (diff)
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>
Diffstat (limited to 'drivers/devfreq/governor.h')
-rw-r--r--drivers/devfreq/governor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/devfreq/governor.h b/drivers/devfreq/governor.h
index ae4d0cc18359..02cf876244d6 100644
--- a/drivers/devfreq/governor.h
+++ b/drivers/devfreq/governor.h
@@ -67,6 +67,7 @@ int devfreq_add_governor(struct devfreq_governor *governor);
int devfreq_remove_governor(struct devfreq_governor *governor);
int devfreq_update_status(struct devfreq *devfreq, unsigned long freq);
+int devfreq_update_target(struct devfreq *devfreq, unsigned long freq);
static inline int devfreq_update_stats(struct devfreq *df)
{