login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
23
Re: [PATCH] disable softlockup detection at boottime
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy Dunlap <randy.dunlap@...>
To: Dimitri Sivanich <sivanich@...>
Cc: <linux-kernel@...>, Thomas Gleixner <tglx@...>, Peter Zijlstra <a.p.zijlstra@...>, Ingo Molnar <mingo@...>
Subject:
Re: [PATCH] disable softlockup detection at boottime
Date: Wednesday, April 23, 2008 - 5:55 pm
On Wed, 23 Apr 2008 15:16:13 -0500 Dimitri Sivanich wrote:
quoted text
> This patch allows softlockup detection to be disabled by specifying > a boottime parameter.
Seems to be missing (a) justification/why and (b) entry in Documentation/kernel-parameters.txt
quoted text
> Signed-off-by: Dimitri Sivanich <sivanich@sgi.com> > > Index: linux/kernel/softlockup.c > =================================================================== > --- linux.orig/kernel/softlockup.c 2008-04-23 13:50:06.000000000 -0500 > +++ linux/kernel/softlockup.c 2008-04-23 14:39:36.267398531 -0500 > @@ -24,6 +24,7 @@ static DEFINE_PER_CPU(unsigned long, tou > static DEFINE_PER_CPU(unsigned long, print_timestamp); > static DEFINE_PER_CPU(struct task_struct *, watchdog_task); > > +static int __read_mostly softlockup_off; > static int __read_mostly did_panic; > unsigned long __read_mostly softlockup_thresh = 60; > > @@ -53,7 +54,8 @@ void touch_softlockup_watchdog(void) > { > int this_cpu = raw_smp_processor_id(); > > - __raw_get_cpu_var(touch_timestamp) = get_timestamp(this_cpu); > + if (!softlockup_off) > + __raw_get_cpu_var(touch_timestamp) = get_timestamp(this_cpu); > } > EXPORT_SYMBOL(touch_softlockup_watchdog); > > @@ -61,6 +63,9 @@ void touch_all_softlockup_watchdogs(void > { > int cpu; > > + if (softlockup_off) > + return; > + > /* Cause each CPU to re-update its timestamp rather than complain */ > for_each_online_cpu(cpu) > per_cpu(touch_timestamp, cpu) = 0; > @@ -79,6 +84,9 @@ void softlockup_tick(void) > struct pt_regs *regs = get_irq_regs(); > unsigned long now; > > + if (softlockup_off) > + return; > + > if (touch_timestamp == 0) { > touch_softlockup_watchdog(); > return; > @@ -306,9 +314,19 @@ __init void spawn_softlockup_task(void) > void *cpu = (void *)(long)smp_processor_id(); > int err = cpu_callback(&cpu_nfb, CPU_UP_PREPARE, cpu); > > + if (softlockup_off) > + return; > + > BUG_ON(err == NOTIFY_BAD); > cpu_callback(&cpu_nfb, CPU_ONLINE, cpu); > register_cpu_notifier(&cpu_nfb); > > atomic_notifier_chain_register(&panic_notifier_list, &panic_block); > } > + > +static int __init disable_softlockup_detection(char *str) > +{ > + softlockup_off = 1; > + return 1; > +} > +__setup("nosoftlockup", disable_softlockup_detection); > --
--- ~Randy --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] disable softlockup detection at boottime
, Dimitri Sivanich
, (Wed Apr 23, 4:16 pm)
Re: [PATCH] disable softlockup detection at boottime
, Ingo Molnar
, (Mon Apr 28, 12:55 pm)
Re: [PATCH] disable softlockup detection at boottime
, Dimitri Sivanich
, (Mon Apr 28, 2:52 pm)
Re: [PATCH] disable softlockup detection at boottime
, Ingo Molnar
, (Tue Apr 29, 8:35 am)
Re: [PATCH] disable softlockup detection at boottime
, Dimitri Sivanich
, (Tue Apr 29, 8:44 am)
Re: [PATCH] disable softlockup detection at boottime
, Ingo Molnar
, (Tue Apr 29, 10:13 am)
Re: [PATCH] disable softlockup detection at boottime
, Randy Dunlap
, (Wed Apr 23, 5:55 pm)
Re: [PATCH] disable softlockup detection at boottime
, Dimitri Sivanich
, (Wed Apr 23, 6:24 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
David Chinner
Re: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md.
Andrew Morton
-mm merge plans for 2.6.23
Trent Piepho
Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code
git
:
linux-netdev
:
David Miller
Re: iptables very slow after commit784544739a25c30637397ace5489eeb6e15d7d49
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
818 guests
online.
Online users
olecom
mtgmktg
forexstrategie
Syndicate