From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753878AbXC0Okh (ORCPT ); Tue, 27 Mar 2007 10:40:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753885AbXC0Okh (ORCPT ); Tue, 27 Mar 2007 10:40:37 -0400 Received: from mx1.redhat.com ([66.187.233.31]:53547 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753878AbXC0Okg (ORCPT ); Tue, 27 Mar 2007 10:40:36 -0400 Message-ID: <46092C9B.4030700@redhat.com> Date: Tue, 27 Mar 2007 10:39:23 -0400 From: Prarit Bhargava User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: Jeremy Fitzhardinge CC: Andrew Morton , Linux Kernel , virtualization@lists.osdl.org, Ingo Molnar , Thomas Gleixner , john stultz , Zachary Amsden , James Morris , Dan Hecht , Paul Mackerras , Martin Schwidefsky , Chris Lalancette , Rick Lindsley Subject: Re: [patch 1/2] Ignore stolen time in the softlockup watchdog References: <20070327053816.881735237@goop.org> <20070327054106.664262413@goop.org> In-Reply-To: <20070327054106.664262413@goop.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Jeremy Fitzhardinge wrote: > > --- > kernel/softlockup.c | 28 +++++++++++++++++++--------- > 1 file changed, 19 insertions(+), 9 deletions(-) > > =================================================================== > --- a/kernel/softlockup.c > +++ b/kernel/softlockup.c > @@ -17,8 +17,8 @@ > > static DEFINE_SPINLOCK(print_lock); > > -static DEFINE_PER_CPU(unsigned long, touch_timestamp); > -static DEFINE_PER_CPU(unsigned long, print_timestamp); > +static DEFINE_PER_CPU(unsigned long long, touch_timestamp); > +static DEFINE_PER_CPU(unsigned long long, print_timestamp); > static DEFINE_PER_CPU(struct task_struct *, watchdog_task); > > static int did_panic = 0; > @@ -37,7 +37,7 @@ static struct notifier_block panic_block > > void touch_softlockup_watchdog(void) > { > - __raw_get_cpu_var(touch_timestamp) = jiffies; > + __raw_get_cpu_var(touch_timestamp) = sched_clock(); > } > I'd like to see this patch implement/fix touch_cpu_softlockup_watchdog and touch_softlockup_watchdog to mimic touch_nmi_watchdog's behaviour. See this now obsolete patch: http://lkml.org/lkml/2007/3/15/131 P. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Prarit Bhargava Subject: Re: [patch 1/2] Ignore stolen time in the softlockup watchdog Date: Tue, 27 Mar 2007 10:39:23 -0400 Message-ID: <46092C9B.4030700@redhat.com> References: <20070327053816.881735237@goop.org> <20070327054106.664262413@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20070327054106.664262413@goop.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Jeremy Fitzhardinge Cc: Rick Lindsley , john stultz , Ingo Molnar , Linux Kernel , virtualization@lists.osdl.org, Paul Mackerras , Martin Schwidefsky , Thomas Gleixner , Andrew Morton List-Id: virtualization@lists.linuxfoundation.org Jeremy Fitzhardinge wrote: > > --- > kernel/softlockup.c | 28 +++++++++++++++++++--------- > 1 file changed, 19 insertions(+), 9 deletions(-) > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- a/kernel/softlockup.c > +++ b/kernel/softlockup.c > @@ -17,8 +17,8 @@ > = > static DEFINE_SPINLOCK(print_lock); > = > -static DEFINE_PER_CPU(unsigned long, touch_timestamp); > -static DEFINE_PER_CPU(unsigned long, print_timestamp); > +static DEFINE_PER_CPU(unsigned long long, touch_timestamp); > +static DEFINE_PER_CPU(unsigned long long, print_timestamp); > static DEFINE_PER_CPU(struct task_struct *, watchdog_task); > = > static int did_panic =3D 0; > @@ -37,7 +37,7 @@ static struct notifier_block panic_block > = > void touch_softlockup_watchdog(void) > { > - __raw_get_cpu_var(touch_timestamp) =3D jiffies; > + __raw_get_cpu_var(touch_timestamp) =3D sched_clock(); > } > = I'd like to see this patch implement/fix touch_cpu_softlockup_watchdog = and touch_softlockup_watchdog to mimic touch_nmi_watchdog's behaviour. See this now obsolete patch: http://lkml.org/lkml/2007/3/15/131 P.