diff options
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r-- | include/linux/devfreq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index 2de4e2eea180..e0acb0e5243b 100644 --- a/include/linux/devfreq.h +++ b/include/linux/devfreq.h | |||
@@ -104,6 +104,8 @@ struct devfreq_dev_profile { | |||
104 | * struct devfreq_governor - Devfreq policy governor | 104 | * struct devfreq_governor - Devfreq policy governor |
105 | * @node: list node - contains registered devfreq governors | 105 | * @node: list node - contains registered devfreq governors |
106 | * @name: Governor's name | 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. | ||
107 | * @get_target_freq: Returns desired operating frequency for the device. | 109 | * @get_target_freq: Returns desired operating frequency for the device. |
108 | * Basically, get_target_freq will run | 110 | * Basically, get_target_freq will run |
109 | * devfreq_dev_profile.get_dev_status() to get the | 111 | * devfreq_dev_profile.get_dev_status() to get the |
@@ -121,6 +123,7 @@ struct devfreq_governor { | |||
121 | struct list_head node; | 123 | struct list_head node; |
122 | 124 | ||
123 | const char name[DEVFREQ_NAME_LEN]; | 125 | const char name[DEVFREQ_NAME_LEN]; |
126 | const unsigned int immutable; | ||
124 | int (*get_target_freq)(struct devfreq *this, unsigned long *freq); | 127 | int (*get_target_freq)(struct devfreq *this, unsigned long *freq); |
125 | int (*event_handler)(struct devfreq *devfreq, | 128 | int (*event_handler)(struct devfreq *devfreq, |
126 | unsigned int event, void *data); | 129 | unsigned int event, void *data); |