Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352245
b: refs/heads/master
c: 1920257
h: refs/heads/master
i:
  352243: a6bf211
v: v3
  • Loading branch information
Johan Hedberg authored and Gustavo Padovan committed Jan 18, 2013
1 parent 1200287 commit 4245d57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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: 6ead1bbc381a674c20f227dbe6f3a8c6f67ce7a2
refs/heads/master: 1920257316615676387794cc5fb838183b3bae7f
5 changes: 3 additions & 2 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,8 @@ static void hci_power_on(struct work_struct *work)
return;

if (test_bit(HCI_AUTO_OFF, &hdev->dev_flags))
schedule_delayed_work(&hdev->power_off, HCI_AUTO_OFF_TIMEOUT);
queue_delayed_work(hdev->req_workqueue, &hdev->power_off,
HCI_AUTO_OFF_TIMEOUT);

if (test_and_clear_bit(HCI_SETUP, &hdev->dev_flags))
mgmt_index_added(hdev);
Expand Down Expand Up @@ -1830,7 +1831,7 @@ int hci_register_dev(struct hci_dev *hdev)
hci_notify(hdev, HCI_DEV_REG);
hci_dev_hold(hdev);

schedule_work(&hdev->power_on);
queue_work(hdev->req_workqueue, &hdev->power_on);

return id;

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,9 +812,9 @@ static int set_powered(struct sock *sk, struct hci_dev *hdev, void *data,
}

if (cp->val)
schedule_work(&hdev->power_on);
queue_work(hdev->req_workqueue, &hdev->power_on);
else
schedule_work(&hdev->power_off.work);
queue_work(hdev->req_workqueue, &hdev->power_off.work);

err = 0;

Expand Down

0 comments on commit 4245d57

Please sign in to comment.