Skip to contentSkip to conversation

Make initcall_debug a core_param

PATCH In review Rusty Russell 2 participants 2 messages Oct 20, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 Make initcall_debug a core_param

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

Cc Arjan van de Ven <[email protected]>
---
 init/main.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
init/main.c +1 -7
diff -r c498374c07e1 init/main.c
@@ -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)
 {
Acked-by on v1 4/5
#1 lore raw
Quoted 3 lines · On Sun, 19 Oct 2008 22:20:25 -0500 Rusty Russell <[email protected]> wrote:

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

makes total sense to me

Signature · 3 lines
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org