summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-10-23 01:09:00 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-10-23 01:09:00 +0200
commit021c870ba4ab4bc9a23d5db4e324f50f26d8ab24 (patch)
treeb6e928a4d20ffab16297e0d44de59ee20aaf9c6d /include
parent5efbe4279f959a3f5ed26adf5f05cb78dd1ffa7e (diff)
PM / QoS: Prepare struct dev_pm_qos_request for more request types
The subsequent patches will use struct dev_pm_qos_request for representing both latency requests and flags requests. To make that easier, put the node member of struct dev_pm_qos_request (under the name "pnode") into a union called "data" that will represent the request's value and list node depending on its type. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Jean Pihet <j-pihet@ti.com> Reviewed-by: mark gross <markgross@thegnar.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pm_qos.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h
index 413ada3c7c97..3b9d14964d2b 100644
--- a/include/linux/pm_qos.h
+++ b/include/linux/pm_qos.h
@@ -39,7 +39,9 @@ struct pm_qos_flags_request {
};
struct dev_pm_qos_request {
- struct plist_node node;
+ union {
+ struct plist_node pnode;
+ } data;
struct device *dev;
};