Revert "PM / devfreq: comments for get_dev_status usage updated"
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 8 Aug 2017 07:54:05 +0000 (16:54 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:20 +0000 (14:33 +0900)
This reverts commit 9b75a7414e3cf606b15b1c67c5ad486af73bcf30.

include/linux/devfreq.h

index 68030e2..70a1c60 100644 (file)
@@ -65,10 +65,7 @@ struct devfreq_dev_status {
  *                     The "flags" parameter's possible values are
  *                     explained above with "DEVFREQ_FLAG_*" macros.
  * @get_dev_status:    The device should provide the current performance
- *                     status to devfreq. Governors are recommended not to
- *                     use this directly. Instead, governors are recommended
- *                     to use devfreq_update_stats() along with
- *                     devfreq.last_status.
+ *                     status to devfreq, which is used by governors.
  * @get_cur_freq:      The device should provide the current frequency
  *                     at which it is operating.
  * @exit:              An optional callback that is called when devfreq
@@ -211,10 +208,6 @@ extern void devm_devfreq_unregister_opp_notifier(struct device *dev,
 /**
  * devfreq_update_stats() - update the last_status pointer in struct devfreq
  * @df:                the devfreq instance whose status needs updating
- *
- *  Governors are recommended to use this function along with last_status,
- * which allows other entities to reuse the last_status without affecting
- * the values fetched later by governors.
  */
 static inline int devfreq_update_stats(struct devfreq *df)
 {