diff options
author | Chanwoo Choi <cwchoi00@gmail.com> | 2017-08-24 10:42:50 +0900 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-08-28 10:22:27 +0900 |
commit | f75b0afa190d041c142bdc3f0c6022f61340b8a3 (patch) | |
tree | b8ab1ea01aab8f3971800fe9a74af02a25c5a861 /drivers/devfreq | |
parent | e8305d408f7873f5a640c74f09d5665771acc369 (diff) | |
download | blackbird-op-linux-f75b0afa190d041c142bdc3f0c6022f61340b8a3.tar.gz blackbird-op-linux-f75b0afa190d041c142bdc3f0c6022f61340b8a3.zip |
PM / devfreq: Move private devfreq_update_stats() into devfreq
THe devfreq_update_stats() updates the 'struct devfreq_dev_status'
in order to get current status of devfreq device. It is only used
for the governors.
This patch moves the devfreq_update_stats() into devfreq directory.
Signed-off-by: Chanwoo Choi <cwchoi00@gmail.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/governor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/devfreq/governor.h b/drivers/devfreq/governor.h index a4f2fa1091e4..cfc50a61a90d 100644 --- a/drivers/devfreq/governor.h +++ b/drivers/devfreq/governor.h @@ -69,4 +69,8 @@ extern int devfreq_remove_governor(struct devfreq_governor *governor); extern int devfreq_update_status(struct devfreq *devfreq, unsigned long freq); +static inline int devfreq_update_stats(struct devfreq *df) +{ + return df->profile->get_dev_status(df->dev.parent, &df->last_status); +} #endif /* _GOVERNOR_H */ |