History

PM / devfreq: Add PM QoS support

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).

Leonard Crestez committed 6 years ago

Commit 05d7ae11 parent 42a6b252 files · +82 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/devfreq.h+5−0
@@ -136,6 +136,8 @@ struct devfreq_dev_profile { · 135 unmodified lines
136136 * @time_in_state: Statistics of devfreq states
137137 * @last_stat_updated: The last time stat updated
138138 * @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
139141 *
140142 * This structure stores the devfreq information for a give device.
141143 *
@@ -178,6 +180,9 @@ struct devfreq { · 36 unmodified lines
178180 unsigned long last_stat_updated;
179181
180182 struct srcu_notifier_head transition_notifier_list;
183+
184+ struct notifier_block nb_min;
185+ struct notifier_block nb_max;
181186 };
182187
183188 struct devfreq_freqs {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t