Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754963Ab0KKSby (ORCPT ); Thu, 11 Nov 2010 13:31:54 -0500 Received: from relais.videotron.ca ([24.201.245.36]:20236 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754014Ab0KKSbx (ORCPT ); Thu, 11 Nov 2010 13:31:53 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN; charset=US-ASCII Date: Thu, 11 Nov 2010 13:31:52 -0500 (EST) From: Nicolas Pitre X-X-Sender: nico@xanadu.home To: Thomas Gleixner Cc: Linus Walleij , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Colin Cross , Rabin VINCENT Subject: Re: [PATCH] RFC: nomadik: expand timesource to 63 bits In-reply-to: Message-id: References: <1289466356-16697-1-git-send-email-linus.walleij@stericsson.com> <4CDBC60F.8070905@stericsson.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1372 Lines: 34 On Thu, 11 Nov 2010, Thomas Gleixner wrote: > On Thu, 11 Nov 2010, Linus Walleij wrote: > > > Thomas Gleixner wrote: > > > > > There is only one caveat. When nohz is on and you sleep longer than 16 > > > seconds then the limitation we have in place does not work anymore, as > > > it would say that the long sleep time is less than the 63bit > > > wraparound time. With 32bit clocksource it limits the sleep correclty > > > to avoid the clocksource wrap issue. > > > > Hm! So the .mask has that side effect (as I suspected), and with > > this the sleep will be limited to what time you can get into 63 bits > > (2200 years). And we sure want NOHZ... > > > > But if I complement the solution with the keepwarm() timer from > > Orion doing just a dummy read() on the clocksource every say 15 secs > > it will work even if the system sleeps for so long. > > Well, you don't need the keepwarm() timer, if you just call > sched_clock() in the idle wakeup path, so the magic in the NOHZ code > will ensure that you reread the thing timely. You still have to make sure you get out of idle before 16 secs has passed. Nicolas -- 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/