From patchwork Wed Dec 15 07:59:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lin Ming X-Patchwork-Id: 412651 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBF7sf09006534 for ; Wed, 15 Dec 2010 07:54:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872Ab0LOHyk (ORCPT ); Wed, 15 Dec 2010 02:54:40 -0500 Received: from mga02.intel.com ([134.134.136.20]:8764 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840Ab0LOHyk (ORCPT ); Wed, 15 Dec 2010 02:54:40 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 14 Dec 2010 23:54:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,347,1288594800"; d="scan'208";a="687294442" Received: from minggr.sh.intel.com (HELO [10.239.13.26]) ([10.239.13.26]) by orsmga001.jf.intel.com with ESMTP; 14 Dec 2010 23:54:39 -0800 Subject: [RFC PATCH] ACPICA: Improve GPE detect From: Lin Ming To: "Rafael J. Wysocki" Cc: lenb , "Moore, Robert" , linux-acpi Date: Wed, 15 Dec 2010 15:59:36 +0800 Message-ID: <1292399976.10384.187.camel@minggr.sh.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Dec 2010 07:54:42 +0000 (UTC) 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 =