linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: suspend: consolidate handling of Sx states addendum
@ 2007-09-21 14:47 Rafael J. Wysocki
  2007-09-22  1:59 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2007-09-21 14:47 UTC (permalink / raw)
  To: Len Brown
  Cc: ACPI Devel Maling List, Alexey Starikovskiy, Frans Pop,
	Andrew Morton

From: Frans Pop <elendil@planet.nl>
Date:   Thu Sep 20 22:27:44 2007 +0200

Make the S0 state be always reported as supported

Signed-off: Frans Pop <elendil@planet.nl>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 drivers/acpi/sleep/main.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: linux-2.6.23-rc7/drivers/acpi/sleep/main.c
===================================================================
--- linux-2.6.23-rc7.orig/drivers/acpi/sleep/main.c
+++ linux-2.6.23-rc7/drivers/acpi/sleep/main.c
@@ -424,9 +424,11 @@ int __init acpi_sleep_init(void)
 	if (acpi_disabled)
 		return 0;
 
-printk(KERN_INFO PREFIX "(supports");
+	sleep_states[ACPI_STATE_S0] = 1;
+	printk(KERN_INFO PREFIX "(supports S0");
+
 #ifdef CONFIG_SUSPEND
-	for (i = ACPI_STATE_S0; i < ACPI_STATE_S4; i++) {
+	for (i = ACPI_STATE_S1; i < ACPI_STATE_S4; i++) {
 		status = acpi_get_sleep_type_data(i, &type_a, &type_b);
 		if (ACPI_SUCCESS(status)) {
 			sleep_states[i] = 1;

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

* Re: [PATCH] ACPI: suspend: consolidate handling of Sx states addendum
  2007-09-21 14:47 [PATCH] ACPI: suspend: consolidate handling of Sx states addendum Rafael J. Wysocki
@ 2007-09-22  1:59 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2007-09-22  1:59 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: ACPI Devel Maling List, Alexey Starikovskiy, Frans Pop,
	Andrew Morton

Applied.

thanks,
-Len

On Friday 21 September 2007 10:47, Rafael J. Wysocki wrote:
> From: Frans Pop <elendil@planet.nl>
> Date:   Thu Sep 20 22:27:44 2007 +0200
> 
> Make the S0 state be always reported as supported
> 
> Signed-off: Frans Pop <elendil@planet.nl>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> ---
>  drivers/acpi/sleep/main.c |    6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> Index: linux-2.6.23-rc7/drivers/acpi/sleep/main.c
> ===================================================================
> --- linux-2.6.23-rc7.orig/drivers/acpi/sleep/main.c
> +++ linux-2.6.23-rc7/drivers/acpi/sleep/main.c
> @@ -424,9 +424,11 @@ int __init acpi_sleep_init(void)
>  	if (acpi_disabled)
>  		return 0;
>  
> -printk(KERN_INFO PREFIX "(supports");
> +	sleep_states[ACPI_STATE_S0] = 1;
> +	printk(KERN_INFO PREFIX "(supports S0");
> +
>  #ifdef CONFIG_SUSPEND
> -	for (i = ACPI_STATE_S0; i < ACPI_STATE_S4; i++) {
> +	for (i = ACPI_STATE_S1; i < ACPI_STATE_S4; i++) {
>  		status = acpi_get_sleep_type_data(i, &type_a, &type_b);
>  		if (ACPI_SUCCESS(status)) {
>  			sleep_states[i] = 1;
> -
> 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
> 

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

end of thread, other threads:[~2007-09-22  2:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-21 14:47 [PATCH] ACPI: suspend: consolidate handling of Sx states addendum Rafael J. Wysocki
2007-09-22  1:59 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).