summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/evgpe.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2011-03-18 23:06:08 +0100
committerLen Brown <len.brown@intel.com>2011-03-18 23:06:08 +0100
commit05534c9ffc9d5d950b14de8ba49a7609dc59b0b8 (patch)
tree65a01a1e0bc0e28c64fb5105cc763949f5412b4b /drivers/acpi/acpica/evgpe.c
parentMerge branches 'acpi-iomem', 'acpi-pm' and 'acpi-sci' into acpi-next (diff)
parentACPICA: Update version to 20110211. (diff)
downloadlinux-05534c9ffc9d5d950b14de8ba49a7609dc59b0b8.tar.xz
linux-05534c9ffc9d5d950b14de8ba49a7609dc59b0b8.zip
Merge branch 'acpica' into release
Diffstat (limited to 'drivers/acpi/acpica/evgpe.c')
-rw-r--r--drivers/acpi/acpica/evgpe.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c
index f4725212eb48..65c79add3b19 100644
--- a/drivers/acpi/acpica/evgpe.c
+++ b/drivers/acpi/acpica/evgpe.c
@@ -373,6 +373,15 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list)
gpe_register_info = &gpe_block->register_info[i];
+ /*
+ * Optimization: If there are no GPEs enabled within this
+ * register, we can safely ignore the entire register.
+ */
+ if (!(gpe_register_info->enable_for_run |
+ gpe_register_info->enable_for_wake)) {
+ continue;
+ }
+
/* Read the Status Register */
status =