dect
/
linux-2.6
Archived
13
0
Fork 0

Bluetooth: Use system workqueue to schedule power_on

hdev->workqueue should be only for rx/tx, so move this one out.

Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
Gustavo F. Padovan 2011-12-18 12:40:32 -02:00
parent 6d438e335c
commit 7f971041cf
2 changed files with 2 additions and 2 deletions

View File

@ -1522,7 +1522,7 @@ int hci_register_dev(struct hci_dev *hdev)
set_bit(HCI_AUTO_OFF, &hdev->flags);
set_bit(HCI_SETUP, &hdev->flags);
queue_work(hdev->workqueue, &hdev->power_on);
schedule_work(&hdev->power_on);
hci_notify(hdev, HCI_DEV_REG);

View File

@ -415,7 +415,7 @@ static int set_powered(struct sock *sk, u16 index, unsigned char *data, u16 len)
}
if (cp->val)
queue_work(hdev->workqueue, &hdev->power_on);
schedule_work(&hdev->power_on);
else
schedule_work(&hdev->power_off.work);