public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lukas Hejtmanek <xhejtman@ics.muni.cz>
To: linux-kernel@vger.kernel.org
Subject: Reboot PATCH (ACPI related)
Date: Sat, 12 May 2007 22:10:07 +0200	[thread overview]
Message-ID: <20070512201006.GA3569@ics.muni.cz> (raw)

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

Hello,

why the attached patch is still not included in mainline kernel? It fixes boot
problems after suspend to RAM.

-- 
Lukáš Hejtmánek

[-- Attachment #2: reboot.patch --]
[-- Type: text/x-diff, Size: 563 bytes --]

--- arch/i386/kernel/reboot.c.old	2006-06-18 03:49:35.000000000 +0200
+++ arch/i386/kernel/reboot.c	2006-07-01 17:29:23.000000000 +0200
@@ -31,6 +31,12 @@
 #ifdef CONFIG_SMP
 static int reboot_cpu = -1;
 #endif
+#ifdef CONFIG_ACPI
+extern u32 acpi_disable(void);
+#else
+static u32 acpi_disable(void){};
+#endif
+
 static int __init reboot_setup(char *str)
 {
 	while(1) {
@@ -322,6 +328,7 @@
 
 void machine_emergency_restart(void)
 {
+	acpi_disable();
 	if (!reboot_thru_bios) {
 		if (efi_enabled) {
 			efi.reset_system(EFI_RESET_COLD, EFI_SUCCESS, 0, NULL);

             reply	other threads:[~2007-05-12 20:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-12 20:10 Lukas Hejtmanek [this message]
2007-05-13  6:44 ` Reboot PATCH (ACPI related) Andrew Morton
2007-05-14 11:57   ` Lukas Hejtmanek

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=20070512201006.GA3569@ics.muni.cz \
    --to=xhejtman@ics.muni.cz \
    --cc=linux-kernel@vger.kernel.org \
    /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