aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorSinan Kaya <[email protected]>2017-12-13 00:37:27 +0000
committerRafael J. Wysocki <[email protected]>2017-12-16 02:05:37 +0000
commit099caa9137624e69d936a62ce585d1adaec385ab (patch)
tree4875d09fcbe21718eb39b4c408b6b1bc02797ae3 /drivers/acpi/cppc_acpi.c
parentLinux 4.15-rc3 (diff)
downloadkernel-099caa9137624e69d936a62ce585d1adaec385ab.tar.gz
kernel-099caa9137624e69d936a62ce585d1adaec385ab.zip
ACPI: GED: unregister interrupts during shutdown
Some GED interrupts could be pending by the time we are doing a reboot. Even though GED driver uses devm_request_irq() to register the interrupt handler, the handler is not being freed on time during a shutdown since the driver is missing a shutdown callback. If the ACPI handler is no longer available, this causes an interrupt storm and delays shutdown. 1. Don't use devm family of functions for IRQ registration/free 2. Keep track of the events since free_irq() requires the dev_id parameter passed into the request_irq() function. 3. Call free_irq() on both remove and shutdown explicitly. Signed-off-by: Sinan Kaya <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions