aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/devfreq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r--include/linux/devfreq.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h
index 597294e0cc40..3aae5b3af87c 100644
--- a/include/linux/devfreq.h
+++ b/include/linux/devfreq.h
@@ -19,6 +19,13 @@
19 19
20#define DEVFREQ_NAME_LEN 16 20#define DEVFREQ_NAME_LEN 16
21 21
22/* DEVFREQ governor name */
23#define DEVFREQ_GOV_SIMPLE_ONDEMAND "simple_ondemand"
24#define DEVFREQ_GOV_PERFORMANCE "performance"
25#define DEVFREQ_GOV_POWERSAVE "powersave"
26#define DEVFREQ_GOV_USERSPACE "userspace"
27#define DEVFREQ_GOV_PASSIVE "passive"
28
22/* DEVFREQ notifier interface */ 29/* DEVFREQ notifier interface */
23#define DEVFREQ_TRANSITION_NOTIFIER (0) 30#define DEVFREQ_TRANSITION_NOTIFIER (0)
24 31
@@ -84,8 +91,9 @@ struct devfreq_dev_status {
84 * from devfreq_remove_device() call. If the user 91 * from devfreq_remove_device() call. If the user
85 * has registered devfreq->nb at a notifier-head, 92 * has registered devfreq->nb at a notifier-head,
86 * this is the time to unregister it. 93 * this is the time to unregister it.
87 * @freq_table: Optional list of frequencies to support statistics. 94 * @freq_table: Optional list of frequencies to support statistics
88 * @max_state: The size of freq_table. 95 * and freq_table must be generated in ascending order.
96 * @max_state: The size of freq_table.
89 */ 97 */
90struct devfreq_dev_profile { 98struct devfreq_dev_profile {
91 unsigned long initial_freq; 99 unsigned long initial_freq;
@@ -120,6 +128,8 @@ struct devfreq_dev_profile {
120 * touch this. 128 * touch this.
121 * @min_freq: Limit minimum frequency requested by user (0: none) 129 * @min_freq: Limit minimum frequency requested by user (0: none)
122 * @max_freq: Limit maximum frequency requested by user (0: none) 130 * @max_freq: Limit maximum frequency requested by user (0: none)
131 * @scaling_min_freq: Limit minimum frequency requested by OPP interface
132 * @scaling_max_freq: Limit maximum frequency requested by OPP interface
123 * @stop_polling: devfreq polling status of a device. 133 * @stop_polling: devfreq polling status of a device.
124 * @total_trans: Number of devfreq transitions 134 * @total_trans: Number of devfreq transitions
125 * @trans_table: Statistics of devfreq transitions 135 * @trans_table: Statistics of devfreq transitions
@@ -153,6 +163,8 @@ struct devfreq {
153 163
154 unsigned long min_freq; 164 unsigned long min_freq;
155 unsigned long max_freq; 165 unsigned long max_freq;
166 unsigned long scaling_min_freq;
167 unsigned long scaling_max_freq;
156 bool stop_polling; 168 bool stop_polling;
157 169
158 /* information for device frequency transition */ 170 /* information for device frequency transition */