summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/kernel/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/kernel/panic.c')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/kernel/panic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/kernel/panic.c b/cleopatre/linux-2.6.25.10-spc300/kernel/panic.c
index 24af9f8bac..2ee48fcd92 100644
--- a/cleopatre/linux-2.6.25.10-spc300/kernel/panic.c
+++ b/cleopatre/linux-2.6.25.10-spc300/kernel/panic.c
@@ -299,6 +299,16 @@ void oops_exit(void)
print_oops_end_marker();
}
+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);
+
#ifdef WANT_WARN_ON_SLOWPATH
void warn_on_slowpath(const char *file, int line)
{