Skip to contentSkip to conversation

runtime disable for softlockup

PATCH Dave Jones 2 participants 3 messages Aug 1, 2006 – Aug 4, 2006

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

The softlockup detector is damned handy, but a real pain if it prevents your distro installer from running.
As a 'worse case scenario', with the diff below, users can disable it at boot time, and still manage to get a box installed.

init/main.c renamed from init/main.c~ +11 -1
@@ -640,6 +640,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 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 · On Tue, 1 Aug 2006 14:38:26 -0400 Dave Jones <[email protected]> wrote:

The softlockup detector is damned handy, but a real pain if it prevents your distro installer from running.

Why is it triggering??

author
#2 lore raw
Quoted 7 lines · Andrew Morton
Quoted 2 lines · On Tue, 1 Aug 2006 14:38:26 -0400 Dave Jones <[email protected]> wrote:

The softlockup detector is damned handy, but a real pain if it prevents your distro installer from running.

Why is it triggering??

It blew up in a few cases circa FC4, which prevented installs, which led me to do this 'just in case' for FC5. The actual lockups got fixed up somewhere in between, but this is still a nice safety net.

Dave

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