Commit 80b7ab33 authored by Gustavo F. Padovan's avatar Gustavo F. Padovan
Browse files

Bluetooth: move power_off to system workqueue

hdev->workqueue will be only for for rx/tx/cmd processing, all other small
works should go to the system workqueue for now.
Acked-by: default avatarMarcel Holtmann <>
Signed-off-by: default avatarGustavo F. Padovan <>
parent 3d57dc68
......@@ -937,7 +937,7 @@ static void hci_power_on(struct work_struct *work)
if (test_bit(HCI_AUTO_OFF, &hdev->flags))
queue_delayed_work(hdev->workqueue, &hdev->power_off,
if (test_and_clear_bit(HCI_SETUP, &hdev->flags))
......@@ -417,7 +417,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);
queue_work(hdev->workqueue, &hdev->;
err = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment