Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80b7ab33 authored by Gustavo Padovan's avatar Gustavo 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 <marcel@holtmann.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 3d57dc68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -937,7 +937,7 @@ static void hci_power_on(struct work_struct *work)
		return;

	if (test_bit(HCI_AUTO_OFF, &hdev->flags))
		queue_delayed_work(hdev->workqueue, &hdev->power_off,
		schedule_delayed_work(&hdev->power_off,
					msecs_to_jiffies(AUTO_OFF_TIMEOUT));

	if (test_and_clear_bit(HCI_SETUP, &hdev->flags))
+1 −1
Original line number Diff line number Diff line
@@ -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);
	else
		queue_work(hdev->workqueue, &hdev->power_off.work);
		schedule_work(&hdev->power_off.work);

	err = 0;