mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: "Grover, Andrew" <andrew.grover@intel.com>,
	lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] 2.4.22-pre9 : ACPI poweroff fix
Date: Wed, 30 Jul 2003 09:29:19 +0200	[thread overview]
Message-ID: <20030730072919.GA5773@alpha.home.local> (raw)
In-Reply-To: <Pine.LNX.4.55L.0307241801260.7875@freak.distro.conectiva>

On Thu, Jul 24, 2003 at 06:02:15PM -0300, Marcelo Tosatti wrote:
> 
> Great. I`ll apply it to the 2.4 tree later and it will be present in
> -pre9.

Hi Marcelo,

it seems you forgot the patch in -pre9. Never mind, I've just rediffed it,
here it is.

Cheers,
Willy


diff -urN linux-2.4.22-pre9/drivers/acpi/system.c linux-2.4.22-pre9-fix/drivers/acpi/system.c
--- linux-2.4.22-pre9/drivers/acpi/system.c	Wed Jul 30 09:18:40 2003
+++ linux-2.4.22-pre9-fix/drivers/acpi/system.c	Wed Jul 30 09:21:56 2003
@@ -90,9 +90,7 @@
 static void
 acpi_power_off (void)
 {
-	acpi_enter_sleep_state_prep(ACPI_STATE_S5);
-	ACPI_DISABLE_IRQS();
-	acpi_enter_sleep_state(ACPI_STATE_S5);
+	acpi_suspend(ACPI_STATE_S5);
 }
 
 #endif /*CONFIG_PM*/
@@ -180,7 +178,7 @@
 			return AE_ERROR;
 	}
 
-	if (state < ACPI_STATE_S5) {
+	if (state <= ACPI_STATE_S5) {
 		/* Tell devices to stop I/O and actually save their state.
 		 * It is theoretically possible that something could fail,
 		 * so handle that gracefully..



  reply	other threads:[~2003-07-30  7:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-24 20:59 [PATCH] 2.4.22-pre7 " Grover, Andrew
2003-07-24 21:02 ` Marcelo Tosatti
2003-07-30  7:29   ` Willy Tarreau [this message]
2003-07-30  8:03     ` [PATCH] 2.6.0-test2 " Behdad Esfahbod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030730072919.GA5773@alpha.home.local \
    --to=willy@w.ods.org \
    --cc=andrew.grover@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®