[PATCH 4/5] Make initcall_debug a core_param

From: Rusty Russell
Date: Sun Oct 19 2008 - 23:20:36 EST



This is the one I really wanted: now it effects module loading, it
makes sense to be able to flip it after boot.

Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Cc: Arjan van de Ven <arjan@xxxxxxxxxxxxx>
---
init/main.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff -r c498374c07e1 init/main.c
--- a/init/main.c Mon Aug 25 15:06:35 2008 +1000
+++ b/init/main.c Mon Aug 25 17:20:43 2008 +1000
@@ -692,13 +692,7 @@ asmlinkage void __init start_kernel(void
}

static int initcall_debug;
-
-static int __init initcall_debug_setup(char *str)
-{
- initcall_debug = 1;
- return 1;
-}
-__setup("initcall_debug", initcall_debug_setup);
+core_param(initcall_debug, initcall_debug, bool, 0644);

int do_one_initcall(initcall_t fn)
{

--
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/