From patchwork Tue May 12 05:27:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 23156 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4C5PSmO009869 for ; Tue, 12 May 2009 05:25:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120AbZELFZ0 (ORCPT ); Tue, 12 May 2009 01:25:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752302AbZELFZ0 (ORCPT ); Tue, 12 May 2009 01:25:26 -0400 Received: from mga11.intel.com ([192.55.52.93]:7733 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752120AbZELFZZ (ORCPT ); Tue, 12 May 2009 01:25:25 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 11 May 2009 22:19:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.41,180,1241420400"; d="scan'208";a="689617556" Received: from yakui_zhao.sh.intel.com (HELO [10.239.36.138]) ([10.239.36.138]) by fmsmga001.fm.intel.com with ESMTP; 11 May 2009 22:28:59 -0700 Subject: [PATCH]: ACPI: Skip the power state check in power transition From: yakui_zhao To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org Organization: Intel Open Source Technology Center Date: Tue, 12 May 2009 13:27:40 +0800 Message-Id: <1242106060.3773.216.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Zhao Yakui Skip the power state check in course of power transition by changing the default value of acpi_power_nocheck to 1. If so, it is unnecessary to add the boot option of "acpi.power_nocheck=1" or add it into DMI power check table to skip the power state check. Of course the power state check still can be enabled by adding the boot option of "acpi.power_nocheck=0". Signed-off-by: Zhao Yakui Acked-by: Matthew Garrett --- drivers/acpi/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/acpi/power.c =================================================================== --- linux-2.6.orig/drivers/acpi/power.c 2009-04-16 16:10:24.000000000 +0800 +++ linux-2.6/drivers/acpi/power.c 2009-05-12 13:12:27.000000000 +0800 @@ -54,7 +54,7 @@ #define ACPI_POWER_RESOURCE_STATE_ON 0x01 #define ACPI_POWER_RESOURCE_STATE_UNKNOWN 0xFF -int acpi_power_nocheck; +int acpi_power_nocheck = 1; module_param_named(power_nocheck, acpi_power_nocheck, bool, 000); static int acpi_power_add(struct acpi_device *device);