diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-18 15:40:32 +0100 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-18 20:07:58 +0100 |
commit | 7f971041cf591d8cf3b289c9d78739638ca7e629 (patch) | |
tree | 8b452bc05bb9cedccee77722bc9f7e82df62ba0e /net/bluetooth/mgmt.c | |
parent | Bluetooth: Remove work_add and work_del from hci_sysfs (diff) | |
download | linux-7f971041cf591d8cf3b289c9d78739638ca7e629.tar.xz linux-7f971041cf591d8cf3b289c9d78739638ca7e629.zip |
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>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index f4af6593c431..ffd1c01c7d0e 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -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); |