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

Commit bc73675b authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

ACPI: fixes a false alarm from lockdep

fixes a false alarm from lockdep, as acpi hotplug workqueue waits other
workqueues.
http://bugzilla.kernel.org/show_bug.cgi?id=14553
https://bugzilla.kernel.org/show_bug.cgi?id=15521



Original-patch-from: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 1ee4d61f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -758,7 +758,14 @@ static acpi_status __acpi_os_execute(acpi_execute_type type,
	queue = hp ? kacpi_hotplug_wq :
		(type == OSL_NOTIFY_HANDLER ? kacpi_notify_wq : kacpid_wq);
	dpc->wait = hp ? 1 : 0;

	if (queue == kacpi_hotplug_wq)
		INIT_WORK(&dpc->work, acpi_os_execute_deferred);
	else if (queue == kacpi_notify_wq)
		INIT_WORK(&dpc->work, acpi_os_execute_deferred);
	else
		INIT_WORK(&dpc->work, acpi_os_execute_deferred);

	ret = queue_work(queue, &dpc->work);

	if (!ret) {