[PATCH v4 2/2] panic: setup panic_on_oops early

From: Felipe Contreras
Date: Wed Nov 27 2013 - 01:25:29 EST


For consistency.

Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
---
kernel/panic.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index 3456652..2256838 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -468,7 +468,11 @@ EXPORT_SYMBOL(__stack_chk_fail);

#endif

-core_param(pause_on_oops, pause_on_oops, int, 0644);
+static int __init set_panic_on_oops(char *val)
+{
+ return kstrtoint(val, 0, &panic_on_oops);
+}
+early_param("panic_on_oops", set_panic_on_oops);

static int __init set_panic_timeout(char *val)
{
--
1.8.4.2+fc1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/