public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: ACPI: Skip the power state check in power transition
@ 2009-05-12  5:27 yakui_zhao
  2009-05-12 14:57 ` Bjorn Helgaas
  2009-05-28  1:43 ` Len Brown
  0 siblings, 2 replies; 11+ messages in thread
From: yakui_zhao @ 2009-05-12  5:27 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi

From: Zhao Yakui <yakui.zhao@intel.com>

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 <yakui.zhao@intel.com>
Acked-by: Matthew Garrett <mjg59@srcf.ucam.org>
---
 drivers/acpi/power.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-05-28  1:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-12  5:27 [PATCH]: ACPI: Skip the power state check in power transition yakui_zhao
2009-05-12 14:57 ` Bjorn Helgaas
2009-05-13  3:13   ` yakui_zhao
2009-05-13 13:08     ` Matthew Garrett
2009-05-14  1:47       ` yakui_zhao
2009-05-14 10:56         ` Matthew Garrett
2009-05-14 18:49           ` Bjorn Helgaas
2009-05-18  2:08             ` yakui_zhao
2009-05-18  7:13               ` Matthew Garrett
2009-05-21 23:28               ` Bjorn Helgaas
2009-05-28  1:43 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox