Help!

Allow softlockup to be runtime disabled.

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Kernel RSS
Next:  [PATCH] ia64: Scalability improvement of gettimeo..  
Author Message
Dave Jones
External


Since: Mar 15, 2005
Posts: 839



PostPosted: Tue Jun 12, 2007 9:20 am    Post subject: Allow softlockup to be runtime disabled.
Archived from groups: linux>kernel (more info?)

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

Signed-off-by: Dave Jones

--- linux-2.6/init/main.c~ 2006-03-05 00:45:51.000000000 -0500
+++ linux-2.6/init/main.c 2006-03-05 00:49:41.000000000 -0500
@@ -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)

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


Since: Jun 06, 2007
Posts: 860



PostPosted: Tue Jun 12, 2007 6:00 pm    Post subject: Re: Allow softlockup to be runtime disabled. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 2007-06-11 at 23:13 -0400, Dave Jones wrote:
> 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?

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


Since: Mar 15, 2005
Posts: 839



PostPosted: Wed Jun 13, 2007 12:10 am    Post subject: Re: Allow softlockup to be runtime disabled. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, Jun 12, 2007 at 01:49:45PM +0200, Peter Zijlstra wrote:
> On Mon, 2007-06-11 at 23:13 -0400, Dave Jones wrote:
> > 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

--
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Kernel All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum