* asdf
@ 2006-07-06 10:15 Horms
2006-07-11 1:18 ` [PATCH] powerpc: unify 32 and 64bit panic_on_oops messages Horms
0 siblings, 1 reply; 2+ messages in thread
From: Horms @ 2006-07-06 10:15 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Paul Mackerras, Anton Blanchard
I have been looking at unifying the way that panic_on_oops logs
what it is doing between the different architectures that implement it.
The first cab off the rank is the patch below which removes a seemingly
silly difference between the behaviour on 32 and 64 bit powerpc.
I have not been able to test this as I do not have a ppc64 machine
at my disposal. However I did test that it compiles thanks to
the wonders of crosstool.
Signed-Off-By: Horms <horms@verge.net.au>
arch/powerpc/kernel/traps.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
index 52f5659..908231a 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -157,10 +157,8 @@ #endif
panic("Fatal exception in interrupt");
if (panic_on_oops) {
-#ifdef CONFIG_PPC64
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
ssleep(5);
-#endif
panic("Fatal exception");
}
do_exit(err);
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] powerpc: unify 32 and 64bit panic_on_oops messages
2006-07-06 10:15 asdf Horms
@ 2006-07-11 1:18 ` Horms
0 siblings, 0 replies; 2+ messages in thread
From: Horms @ 2006-07-11 1:18 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Paul Mackerras, Anton Blanchard
First up, sorry for the silly subject in the original post, that was an
error.
Secondly, when I sent the x86_64 version of this patch Andi Kleen
pointed out that calling ssleep() will just cause an early panic if the
code is in interrupt context. Accordingly, I plan to post patches to
remoove the ssleep(). So please ignore the patch that is bellow.
Thanks
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
On Thu, 6 Jul 2006 19:15:22 +0900, Horms wrote:
> I have been looking at unifying the way that panic_on_oops logs
> what it is doing between the different architectures that implement it.
> The first cab off the rank is the patch below which removes a seemingly
> silly difference between the behaviour on 32 and 64 bit powerpc.
>
> I have not been able to test this as I do not have a ppc64 machine
> at my disposal. However I did test that it compiles thanks to
> the wonders of crosstool.
>
> Signed-Off-By: Horms <horms@verge.net.au>
>
> arch/powerpc/kernel/traps.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
> index 52f5659..908231a 100644
> --- a/arch/powerpc/kernel/traps.c
> +++ b/arch/powerpc/kernel/traps.c
> @@ -157,10 +157,8 @@ #endif
> panic("Fatal exception in interrupt");
>
> if (panic_on_oops) {
> -#ifdef CONFIG_PPC64
> printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
> ssleep(5);
> -#endif
> panic("Fatal exception");
> }
> do_exit(err);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-11 1:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-06 10:15 asdf Horms
2006-07-11 1:18 ` [PATCH] powerpc: unify 32 and 64bit panic_on_oops messages Horms
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox