Skip to contentSkip to conversation

Allow softlockup to be runtime disabled.

PATCH Dave Jones 2 participants 3 messages Jun 12, 2007

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

It's useful sometimes to disable the softlockup checker at boottime. Especially if it triggers during a distro install.

init/main.c renamed from init/main.c~ +11 -1
@@ -732,6 +732,15 @@ static void __init do_basic_setup(void)
 	do_initcalls();
 }
 
+static int __initdata nosoftlockup;
+
+static int __init nosoftlockup_setup(char *str)
+{
+	nosoftlockup = 1;
+	return 1;
+}
+__setup("nosoftlockup", nosoftlockup_setup);
+
 static void __init do_pre_smp_initcalls(void)
 {
 	extern int spawn_ksoftirqd(void);
@@ -649,7 +657,8 @@ static void do_pre_smp_initcalls(void)
 	migration_init();
 #endif
 	spawn_ksoftirqd();
-	spawn_softlockup_task();
+	if (!nosoftlockup)
+		spawn_softlockup_task();
 }
 
 static void run_init_process(char *init_filename)
Signature · 1 line
http://www.codemonkey.org.uk
#1 lore raw
Quoted 2 lines · Dave Jones

It's useful sometimes to disable the softlockup checker at boottime. Especially if it triggers during a distro install.

Should we not rather fix these occurrences?

author
#2 lore raw
Quoted 5 lines · Peter Zijlstra
Quoted 2 lines · Dave Jones

It's useful sometimes to disable the softlockup checker at boottime. Especially if it triggers during a distro install.

Should we not rather fix these occurrences?

We do, but we can't easily fix the kernel that ends up on install media. It's easier to tell a user
"boot with nosoftlockup, then update your kernel after its installed" than it is to guide them through reconstructing an ISO with an updated kernel.

Dave

Signature · 1 line
http://www.codemonkey.org.uk