Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350995
b: refs/heads/master
c: ed1ac6e
h: refs/heads/master
i:
  350993: 734345e
  350991: 20c3b51
v: v3
  • Loading branch information
Tejun Heo authored and Rafael J. Wysocki committed Jan 25, 2013
1 parent b4d98fe commit d9c187b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 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: a4ca26a43e39d521b3913f09faf82dfbbbca5f6a
refs/heads/master: ed1ac6e91a3ff7c561008ba57747cd6cbc49385e
2 changes: 1 addition & 1 deletion trunk/kernel/power/autosleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static DECLARE_WORK(suspend_work, try_to_suspend);

void queue_up_suspend_work(void)
{
if (!work_pending(&suspend_work) && autosleep_state > PM_SUSPEND_ON)
if (autosleep_state > PM_SUSPEND_ON)
queue_work(autosleep_wq, &suspend_work);
}

Expand Down
9 changes: 3 additions & 6 deletions trunk/kernel/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,7 @@ void pm_qos_update_request(struct pm_qos_request *req,
return;
}

if (delayed_work_pending(&req->work))
cancel_delayed_work_sync(&req->work);
cancel_delayed_work_sync(&req->work);

if (new_value != req->node.prio)
pm_qos_update_target(
Expand All @@ -386,8 +385,7 @@ void pm_qos_update_request_timeout(struct pm_qos_request *req, s32 new_value,
"%s called for unknown object.", __func__))
return;

if (delayed_work_pending(&req->work))
cancel_delayed_work_sync(&req->work);
cancel_delayed_work_sync(&req->work);

if (new_value != req->node.prio)
pm_qos_update_target(
Expand Down Expand Up @@ -416,8 +414,7 @@ void pm_qos_remove_request(struct pm_qos_request *req)
return;
}

if (delayed_work_pending(&req->work))
cancel_delayed_work_sync(&req->work);
cancel_delayed_work_sync(&req->work);

pm_qos_update_target(pm_qos_array[req->pm_qos_class]->constraints,
&req->node, PM_QOS_REMOVE_REQ,
Expand Down

0 comments on commit d9c187b

Please sign in to comment.