Skip to content

Commit 655a6e7

Browse files
committed
ACPI: EC: Use a threaded handler for dedicated IRQ
After commit 7a36b90 ("ACPI: OSL: Use a threaded interrupt handler for SCI") all of the EC code runs in thread context on all systems where EC events are signaled through a GPE. It may as well run in thread context on systems using a dedicated IRQ for EC events signaling, so make it use a threaded handler for that IRQ. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 8e57de4 commit 655a6e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/ec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,8 +1458,8 @@ static bool install_gpe_event_handler(struct acpi_ec *ec)
14581458

14591459
static bool install_gpio_irq_event_handler(struct acpi_ec *ec)
14601460
{
1461-
return request_irq(ec->irq, acpi_ec_irq_handler, IRQF_SHARED,
1462-
"ACPI EC", ec) >= 0;
1461+
return request_threaded_irq(ec->irq, NULL, acpi_ec_irq_handler,
1462+
IRQF_SHARED | IRQF_ONESHOT, "ACPI EC", ec) >= 0;
14631463
}
14641464

14651465
/**

0 commit comments

Comments
 (0)