Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336588
b: refs/heads/master
c: 021c870
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Oct 22, 2012
1 parent e295441 commit 46a31e6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5efbe4279f959a3f5ed26adf5f05cb78dd1ffa7e
refs/heads/master: 021c870ba4ab4bc9a23d5db4e324f50f26d8ab24
6 changes: 3 additions & 3 deletions trunk/drivers/base/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int apply_constraint(struct dev_pm_qos_request *req,
int ret, curr_value;

ret = pm_qos_update_target(&req->dev->power.qos->latency,
&req->node, action, value);
&req->data.pnode, action, value);

if (ret) {
/* Call the global callbacks if needed */
Expand Down Expand Up @@ -183,7 +183,7 @@ void dev_pm_qos_constraints_destroy(struct device *dev)

c = &qos->latency;
/* Flush the constraints list for the device */
plist_for_each_entry_safe(req, tmp, &c->list, node) {
plist_for_each_entry_safe(req, tmp, &c->list, data.pnode) {
/*
* Update constraints list and call the notification
* callbacks if needed
Expand Down Expand Up @@ -293,7 +293,7 @@ int dev_pm_qos_update_request(struct dev_pm_qos_request *req,
mutex_lock(&dev_pm_qos_mtx);

if (req->dev->power.qos) {
if (new_value != req->node.prio)
if (new_value != req->data.pnode.prio)
ret = apply_constraint(req, PM_QOS_UPDATE_REQ,
new_value);
} else {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/base/power/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static DEVICE_ATTR(autosuspend_delay_ms, 0644, autosuspend_delay_ms_show,
static ssize_t pm_qos_latency_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
return sprintf(buf, "%d\n", dev->power.pq_req->node.prio);
return sprintf(buf, "%d\n", dev->power.pq_req->data.pnode.prio);
}

static ssize_t pm_qos_latency_store(struct device *dev,
Expand Down
4 changes: 3 additions & 1 deletion trunk/include/linux/pm_qos.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 46a31e6

Please sign in to comment.