diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-10 18:36:00 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-10 18:36:00 -0500 |
commit | 71d821fdaec08afcbfb3cf258c0d64ea0e336ff3 (patch) | |
tree | 1c743bfedc41b264fb1dbc4f1383c7e9bf001c93 /include/linux/pm_qos.h | |
parent | 1a8f83515c1646e134163f0ab310362fae49fcca (diff) |
PM / QoS: Add type to dev_pm_qos_add_ancestor_request() arguments
Rework dev_pm_qos_add_ancestor_request() so that device PM QoS type
is passed to it as the third argument and make it support the
DEV_PM_QOS_LATENCY_TOLERANCE device PM QoS type (in addition to
DEV_PM_QOS_RESUME_LATENCY).
That will allow the drivers of devices without latency tolerance
hardware support to use their ancestors having it as proxies for
their latency tolerance requirements.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_qos.h')
-rw-r--r-- | include/linux/pm_qos.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 0b476019be55..9ab4bf7c4646 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h | |||
@@ -149,7 +149,8 @@ int dev_pm_qos_remove_global_notifier(struct notifier_block *notifier); | |||
149 | void dev_pm_qos_constraints_init(struct device *dev); | 149 | void dev_pm_qos_constraints_init(struct device *dev); |
150 | void dev_pm_qos_constraints_destroy(struct device *dev); | 150 | void dev_pm_qos_constraints_destroy(struct device *dev); |
151 | int dev_pm_qos_add_ancestor_request(struct device *dev, | 151 | int dev_pm_qos_add_ancestor_request(struct device *dev, |
152 | struct dev_pm_qos_request *req, s32 value); | 152 | struct dev_pm_qos_request *req, |
153 | enum dev_pm_qos_req_type type, s32 value); | ||
153 | #else | 154 | #else |
154 | static inline enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, | 155 | static inline enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, |
155 | s32 mask) | 156 | s32 mask) |
@@ -192,7 +193,9 @@ static inline void dev_pm_qos_constraints_destroy(struct device *dev) | |||
192 | dev->power.power_state = PMSG_INVALID; | 193 | dev->power.power_state = PMSG_INVALID; |
193 | } | 194 | } |
194 | static inline int dev_pm_qos_add_ancestor_request(struct device *dev, | 195 | static inline int dev_pm_qos_add_ancestor_request(struct device *dev, |
195 | struct dev_pm_qos_request *req, s32 value) | 196 | struct dev_pm_qos_request *req, |
197 | enum dev_pm_qos_req_type type, | ||
198 | s32 value) | ||
196 | { return 0; } | 199 | { return 0; } |
197 | #endif | 200 | #endif |
198 | 201 | ||