public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: linux-kernel@vger.kernel.org
Cc: linuxppc64-dev@ozlabs.org
Subject: Re: [PATCH] CONFIG_PM for ppc64, to allow sysrq o
Date: Tue, 15 Mar 2005 23:03:32 +0100	[thread overview]
Message-ID: <20050315220332.GA24708@suse.de> (raw)
In-Reply-To: <20050315212656.GA24563@suse.de>

 On Tue, Mar 15, Olaf Hering wrote:

> 
> For some weird reason, sysrq o is hidden behind CONFIG_PM.
> Why? One can power off just fine without that. Can pm_sysrq_init be
> moved to a better place? I think it used to be in sysrq.c in 2.4.
> 
> Too bad, with this patch radeonfb fails to compile.

After disabling radeon and this additional change, sysrq o powers off.
Just dont type too fast over hvc (ctrl o o)  ;)

Index: linux-2.6.11-olh/arch/ppc64/kernel/setup.c
===================================================================
--- linux-2.6.11-olh.orig/arch/ppc64/kernel/setup.c
+++ linux-2.6.11-olh/arch/ppc64/kernel/setup.c
@@ -31,6 +31,7 @@
 #include <linux/unistd.h>
 #include <linux/serial.h>
 #include <linux/serial_8250.h>
+#include <linux/pm.h>
 #include <asm/io.h>
 #include <asm/prom.h>
 #include <asm/processor.h>
@@ -710,6 +711,8 @@ void machine_halt(void)
 
 EXPORT_SYMBOL(machine_halt);
 
+void (*pm_power_off)(void) = machine_power_off;
+
 unsigned long ppc_proc_freq;
 unsigned long ppc_tb_freq;
 

  reply	other threads:[~2005-03-15 22:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-15 21:26 [PATCH] CONFIG_PM for ppc64, to allow sysrq o Olaf Hering
2005-03-15 22:03 ` Olaf Hering [this message]
2005-03-16  0:04 ` Benjamin Herrenschmidt

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=20050315220332.GA24708@suse.de \
    --to=olh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc64-dev@ozlabs.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