* [PATCH] CONFIG_PM for ppc64, to allow sysrq o
@ 2005-03-15 21:26 Olaf Hering
2005-03-15 22:03 ` Olaf Hering
2005-03-16 0:04 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 3+ messages in thread
From: Olaf Hering @ 2005-03-15 21:26 UTC (permalink / raw)
To: linux-kernel; +Cc: linuxppc64-dev
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.
Index: linux-2.6.11-olh/arch/ppc64/Kconfig
===================================================================
--- linux-2.6.11-olh.orig/arch/ppc64/Kconfig
+++ linux-2.6.11-olh/arch/ppc64/Kconfig
@@ -350,6 +350,8 @@ config CMDLINE
endmenu
+source "kernel/power/Kconfig"
+
source "drivers/Kconfig"
source "fs/Kconfig"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] CONFIG_PM for ppc64, to allow sysrq o
2005-03-15 21:26 [PATCH] CONFIG_PM for ppc64, to allow sysrq o Olaf Hering
@ 2005-03-15 22:03 ` Olaf Hering
2005-03-16 0:04 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 3+ messages in thread
From: Olaf Hering @ 2005-03-15 22:03 UTC (permalink / raw)
To: linux-kernel; +Cc: linuxppc64-dev
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] CONFIG_PM for ppc64, to allow sysrq o
2005-03-15 21:26 [PATCH] CONFIG_PM for ppc64, to allow sysrq o Olaf Hering
2005-03-15 22:03 ` Olaf Hering
@ 2005-03-16 0:04 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2005-03-16 0:04 UTC (permalink / raw)
To: Olaf Hering; +Cc: Linux Kernel list, linuxppc64-dev
On Tue, 2005-03-15 at 22:26 +0100, 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.
Hehe :)
ppc64 isn't yet ready for CONFIG_PM, though I have some
hacks-in-progress ...
Ben.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-16 0:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 21:26 [PATCH] CONFIG_PM for ppc64, to allow sysrq o Olaf Hering
2005-03-15 22:03 ` Olaf Hering
2005-03-16 0:04 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox