diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-17 11:52:27 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-18 14:07:58 -0500 |
commit | 80b7ab33414beeb3c17600af9b69d903f5cf8a7d (patch) | |
tree | b869a4a292634a0674962dc500915583e8953043 | |
parent | 3d57dc6806599ca7d389fc9410eefbc1a7dc32bc (diff) |
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: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-rw-r--r-- | net/bluetooth/hci_core.c | 2 | ||||
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 2b20941ebcb1..a14a60d5890b 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -937,7 +937,7 @@ static void hci_power_on(struct work_struct *work) | |||
937 | return; | 937 | return; |
938 | 938 | ||
939 | if (test_bit(HCI_AUTO_OFF, &hdev->flags)) | 939 | if (test_bit(HCI_AUTO_OFF, &hdev->flags)) |
940 | queue_delayed_work(hdev->workqueue, &hdev->power_off, | 940 | schedule_delayed_work(&hdev->power_off, |
941 | msecs_to_jiffies(AUTO_OFF_TIMEOUT)); | 941 | msecs_to_jiffies(AUTO_OFF_TIMEOUT)); |
942 | 942 | ||
943 | if (test_and_clear_bit(HCI_SETUP, &hdev->flags)) | 943 | if (test_and_clear_bit(HCI_SETUP, &hdev->flags)) |
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index ad4817c9ef2f..f4af6593c431 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -417,7 +417,7 @@ static int set_powered(struct sock *sk, u16 index, unsigned char *data, u16 len) | |||
417 | if (cp->val) | 417 | if (cp->val) |
418 | queue_work(hdev->workqueue, &hdev->power_on); | 418 | queue_work(hdev->workqueue, &hdev->power_on); |
419 | else | 419 | else |
420 | queue_work(hdev->workqueue, &hdev->power_off.work); | 420 | schedule_work(&hdev->power_off.work); |
421 | 421 | ||
422 | err = 0; | 422 | err = 0; |
423 | 423 | ||