Register notifiers with the PM QoS framework in order to respond to requests for DEV_PM_QOS_MIN_FREQUENCY and DEV_PM_QOS_MAX_FREQUENCY. No notifiers are added by this patch but PM QoS constraints can be imposed externally (for example from other devices).
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -136,6 +136,8 @@ struct devfreq_dev_profile { · 135 unmodified lines | ||
| 136 | 136 | * @time_in_state: Statistics of devfreq states |
| 137 | 137 | * @last_stat_updated: The last time stat updated |
| 138 | 138 | * @transition_notifier_list: list head of DEVFREQ_TRANSITION_NOTIFIER notifier |
| 139 | + * @nb_min: Notifier block for DEV_PM_QOS_MIN_FREQUENCY | |
| 140 | + * @nb_max: Notifier block for DEV_PM_QOS_MAX_FREQUENCY | |
| 139 | 141 | * |
| 140 | 142 | * This structure stores the devfreq information for a give device. |
| 141 | 143 | * |
| @@ -178,6 +180,9 @@ struct devfreq { · 36 unmodified lines | ||
| 178 | 180 | unsigned long last_stat_updated; |
| 179 | 181 | |
| 180 | 182 | struct srcu_notifier_head transition_notifier_list; |
| 183 | + | |
| 184 | + struct notifier_block nb_min; | |
| 185 | + struct notifier_block nb_max; | |
| 181 | 186 | }; |
| 182 | 187 | |
| 183 | 188 | struct devfreq_freqs { |