diff mbox

[RFC] ACPICA: Improve GPE detect

Message ID 1292399976.10384.187.camel@minggr.sh.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lin Ming Dec. 15, 2010, 7:59 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c
index 7c339d3..49fab43 100644
--- a/drivers/acpi/acpica/evgpe.c
+++ b/drivers/acpi/acpica/evgpe.c
@@ -373,6 +373,14 @@  u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list)
 
 			gpe_register_info = &gpe_block->register_info[i];
 
+			if (!gpe_register_info->enable_for_run &&
+				!gpe_register_info->enable_for_wake) {
+
+				/* Disabled for both "runtime" and "wakeup", move on */
+
+				continue;
+			}
+
 			/* Read the Status Register */
 
 			status =