diff options
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r-- | include/linux/devfreq.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index e0acb0e5243b..6c220e4ebb6b 100644 --- a/include/linux/devfreq.h +++ b/include/linux/devfreq.h | |||
@@ -27,6 +27,7 @@ | |||
27 | #define DEVFREQ_POSTCHANGE (1) | 27 | #define DEVFREQ_POSTCHANGE (1) |
28 | 28 | ||
29 | struct devfreq; | 29 | struct devfreq; |
30 | struct devfreq_governor; | ||
30 | 31 | ||
31 | /** | 32 | /** |
32 | * struct devfreq_dev_status - Data given from devfreq user device to | 33 | * struct devfreq_dev_status - Data given from devfreq user device to |
@@ -101,35 +102,6 @@ struct devfreq_dev_profile { | |||
101 | }; | 102 | }; |
102 | 103 | ||
103 | /** | 104 | /** |
104 | * struct devfreq_governor - Devfreq policy governor | ||
105 | * @node: list node - contains registered devfreq governors | ||
106 | * @name: Governor's name | ||
107 | * @immutable: Immutable flag for governor. If the value is 1, | ||
108 | * this govenror is never changeable to other governor. | ||
109 | * @get_target_freq: Returns desired operating frequency for the device. | ||
110 | * Basically, get_target_freq will run | ||
111 | * devfreq_dev_profile.get_dev_status() to get the | ||
112 | * status of the device (load = busy_time / total_time). | ||
113 | * If no_central_polling is set, this callback is called | ||
114 | * only with update_devfreq() notified by OPP. | ||
115 | * @event_handler: Callback for devfreq core framework to notify events | ||
116 | * to governors. Events include per device governor | ||
117 | * init and exit, opp changes out of devfreq, suspend | ||
118 | * and resume of per device devfreq during device idle. | ||
119 | * | ||
120 | * Note that the callbacks are called with devfreq->lock locked by devfreq. | ||
121 | */ | ||
122 | struct devfreq_governor { | ||
123 | struct list_head node; | ||
124 | |||
125 | const char name[DEVFREQ_NAME_LEN]; | ||
126 | const unsigned int immutable; | ||
127 | int (*get_target_freq)(struct devfreq *this, unsigned long *freq); | ||
128 | int (*event_handler)(struct devfreq *devfreq, | ||
129 | unsigned int event, void *data); | ||
130 | }; | ||
131 | |||
132 | /** | ||
133 | * struct devfreq - Device devfreq structure | 105 | * struct devfreq - Device devfreq structure |
134 | * @node: list node - contains the devices with devfreq that have been | 106 | * @node: list node - contains the devices with devfreq that have been |
135 | * registered. | 107 | * registered. |