Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754591AbZG0UPo (ORCPT ); Mon, 27 Jul 2009 16:15:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752001AbZG0UPn (ORCPT ); Mon, 27 Jul 2009 16:15:43 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:50876 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750833AbZG0UPn (ORCPT ); Mon, 27 Jul 2009 16:15:43 -0400 Subject: Re: [PATCH] softlockup: fix problem with long kernel pauses from kgdb From: Peter Zijlstra To: Jason Wessel Cc: Ingo Molnar , lkml , "Deng, Dongdong" In-Reply-To: <4A6E0825.3020604@windriver.com> References: <4A6E0825.3020604@windriver.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 27 Jul 2009 22:18:13 +0200 Message-Id: <1248725893.6987.2055.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1235 Lines: 36 On Mon, 2009-07-27 at 15:03 -0500, Jason Wessel wrote: > > The fix is to simply invoke sched_clock_tick() to update "cpu sched > clock" on exit from kgdb_handle_exception. Is that a regular IRQ context, or is that NMI context? > Signed-off-by: Dongdong Deng > Signed-off-by: Jason Wessel > Cc: Ingo Molnar > Cc: peterz@infradead.org > --- > kernel/softlockup.c | 3 +++ > 1 file changed, 3 insertions(+) > > --- a/kernel/softlockup.c > +++ b/kernel/softlockup.c > @@ -118,6 +118,9 @@ void softlockup_tick(void) > } > > if (touch_timestamp == 0) { > + /* If the time stamp was touched externally make sure the > + * scheduler tick is up to date as well */ > + sched_clock_tick(); > __touch_softlockup_watchdog(); > return; > } > Aside from the funny comment style (please fix) the fix does look sensible. -- 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/