]> Pileus Git - ~andy/linux/commitdiff
move x86 specific oops=panic to generic code
authorOlaf Hering <olaf@aepfle.de>
Tue, 22 Mar 2011 23:34:04 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:11 +0000 (17:44 -0700)
The oops=panic cmdline option is not x86 specific, move it to generic code.
Update documentation.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/kernel-parameters.txt
Documentation/x86/x86_64/boot-options.txt
arch/x86/kernel/dumpstack.c
kernel/panic.c

index d18a9e12152a701bb2729afdb65288ad6da2fccf..a3b688287a8d1b4be61bfc67466756942a2255bc 100644 (file)
@@ -1825,6 +1825,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                                perfmon on Intel CPUs instead of the
                                CPU specific event set.
 
+       oops=panic      Always panic on oopses. Default is to just kill the process,
+                       but there is a small probability of deadlocking the machine.
+                       This will also cause panics on machine check exceptions.
+                       Useful together with panic=30 to trigger a reboot.
+
        OSS             [HW,OSS]
                        See Documentation/sound/oss/oss-parameters.txt
 
index 48c13b8ab90c498dcef836aa293c80e5ec153b4b..092e596a1301f184bce14acd04a15f8e97904c48 100644 (file)
@@ -293,11 +293,6 @@ IOMMU (input/output memory management unit)
 
 Debugging
 
-  oops=panic   Always panic on oopses. Default is to just kill the process,
-               but there is a small probability of deadlocking the machine.
-               This will also cause panics on machine check exceptions.
-               Useful together with panic=30 to trigger a reboot.
-
   kstack=N     Print N words from the kernel stack in oops dumps.
 
   pagefaulttrace  Dump all page faults. Only useful for extreme debugging
index 999e2793590b2275fe36d1c81d3bb74e69143a9d..81ac6c78c01cf24f4976418e27e821ff153a7dcd 100644 (file)
@@ -322,16 +322,6 @@ void die(const char *str, struct pt_regs *regs, long err)
        oops_end(flags, regs, sig);
 }
 
-static int __init oops_setup(char *s)
-{
-       if (!s)
-               return -EINVAL;
-       if (!strcmp(s, "panic"))
-               panic_on_oops = 1;
-       return 0;
-}
-early_param("oops", oops_setup);
-
 static int __init kstack_setup(char *s)
 {
        if (!s)
index 991bb87a170408ae2db0fdc29047432ae4204377..69231670eb952357809488fa58cffef5596e9c63 100644 (file)
@@ -433,3 +433,13 @@ EXPORT_SYMBOL(__stack_chk_fail);
 
 core_param(panic, panic_timeout, int, 0644);
 core_param(pause_on_oops, pause_on_oops, int, 0644);
+
+static int __init oops_setup(char *s)
+{
+       if (!s)
+               return -EINVAL;
+       if (!strcmp(s, "panic"))
+               panic_on_oops = 1;
+       return 0;
+}
+early_param("oops", oops_setup);