Lines Matching full:devfreq
2 * governor.h - internal header for devfreq governors.
11 * This header is for devfreq governors in drivers/devfreq/
17 #include <linux/devfreq.h>
19 #define to_devfreq(DEV) container_of((DEV), struct devfreq, dev)
21 /* Devfreq events */
29 * struct devfreq_governor - Devfreq policy governor
30 * @node: list node - contains registered devfreq governors
40 * @event_handler: Callback for devfreq core framework to notify events
42 * init and exit, opp changes out of devfreq, suspend
43 * and resume of per device devfreq during device idle.
45 * Note that the callbacks are called with devfreq->lock locked by devfreq.
52 int (*get_target_freq)(struct devfreq *this, unsigned long *freq);
53 int (*event_handler)(struct devfreq *devfreq,
57 /* Caution: devfreq->lock must be locked before calling update_devfreq */
58 extern int update_devfreq(struct devfreq *devfreq);
60 extern void devfreq_monitor_start(struct devfreq *devfreq);
61 extern void devfreq_monitor_stop(struct devfreq *devfreq);
62 extern void devfreq_monitor_suspend(struct devfreq *devfreq);
63 extern void devfreq_monitor_resume(struct devfreq *devfreq);
64 extern void devfreq_interval_update(struct devfreq *devfreq,
70 extern int devfreq_update_status(struct devfreq *devfreq, unsigned long freq);
72 static inline int devfreq_update_stats(struct devfreq *df) in devfreq_update_stats()