Message ID | 2209952.LFAxc7Zn43@kreacher |
---|---|
State | New |
Headers | show |
Series | ACPI: EC: Fix flushing of pending work | expand |
Index: linux-pm/drivers/acpi/ec.c =================================================================== --- linux-pm.orig/drivers/acpi/ec.c +++ linux-pm/drivers/acpi/ec.c @@ -535,7 +535,7 @@ static void acpi_ec_enable_event(struct #ifdef CONFIG_PM_SLEEP static void __acpi_ec_flush_work(void) { - flush_scheduled_work(); /* flush ec->work */ + drain_workqueue(system_wq); /* flush ec->work */ flush_workqueue(ec_query_wq); /* flush queries */ }