diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-10-25 13:48:46 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-11-11 18:35:42 -0500 |
commit | 0b7084ac67fb84f0cf2f8bc02d7e0dea8521dd2d (patch) | |
tree | 0a619ac7a700543e6ba69aa5a568e5678ec0603d /drivers/acpi/button.c | |
parent | a2f93aeadf97e870ff385030633a73e21146815d (diff) |
ACPICA: Use spinlock for acpi_{en|dis}able_gpe
Disabling gpe might interfere with gpe detection/handling,
thus producing "interrupt not handled" errors.
Ironically, disabling of GPE from interrupt context is already
under spinlock, so only userspace needs to start using it.
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/button.c')
-rw-r--r-- | drivers/acpi/button.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index cb046c3fc3f2..eb6bf3025f97 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c | |||
@@ -479,7 +479,7 @@ static int acpi_button_add(struct acpi_device *device) | |||
479 | device->wakeup.gpe_number, | 479 | device->wakeup.gpe_number, |
480 | ACPI_GPE_TYPE_WAKE_RUN); | 480 | ACPI_GPE_TYPE_WAKE_RUN); |
481 | acpi_enable_gpe(device->wakeup.gpe_device, | 481 | acpi_enable_gpe(device->wakeup.gpe_device, |
482 | device->wakeup.gpe_number, ACPI_NOT_ISR); | 482 | device->wakeup.gpe_number); |
483 | device->wakeup.state.enabled = 1; | 483 | device->wakeup.state.enabled = 1; |
484 | } | 484 | } |
485 | 485 | ||