Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030221AbWHQWLo (ORCPT ); Thu, 17 Aug 2006 18:11:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030230AbWHQWLn (ORCPT ); Thu, 17 Aug 2006 18:11:43 -0400 Received: from outbound-mail-38.bluehost.com ([70.98.111.192]:32215 "HELO outbound-mail-38.bluehost.com") by vger.kernel.org with SMTP id S1030221AbWHQWLn (ORCPT ); Thu, 17 Aug 2006 18:11:43 -0400 From: Jesse Barnes To: john stultz Subject: Re: Linux time code Date: Thu, 17 Aug 2006 15:11:59 -0700 User-Agent: KMail/1.9.4 Cc: Roman Zippel , Ulrich Windl , linux-kernel@vger.kernel.org, Udo van den Heuvel References: <44E32B23.16949.BBB1EC4@Ulrich.Windl.rkdvmks1.ngate.uni-regensburg.de> <1155851917.31755.125.camel@cog.beaverton.ibm.com> In-Reply-To: <1155851917.31755.125.camel@cog.beaverton.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608171512.00417.jbarnes@virtuousgeek.org> X-Identified-User: {642:box128.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 71.198.43.183 authed with jbarnes@virtuousgeek.org} Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1206 Lines: 27 On Thursday, August 17, 2006 2:58 pm, john stultz wrote: > On Thu, 2006-08-17 at 13:43 +0200, Roman Zippel wrote: > > On Wed, 16 Aug 2006, john stultz wrote: > > > > For example there is a POSIX-like sys_clock_gettime() intended > > > > to server the end-user directly, but there's no counterpart > > > > do_clock_gettime() to server any in-kernel needs. > > > > > > Hmmm.. ktime_get(), ktime_get_ts() and ktime_get_real(), provide > > > this info. Is there something missing here? > > > > What is missing is the abiltity to map a clock to a posix clock, so > > that you would have CLOCK_REALTIME/CLOCK_MONOTONIC as NTP controlled > > clocks and other CLOCK_* as the raw clock. > > Is there a use case for this (wanting non-NTP corrected time on a > system running NTPd) you have in mind? Isn't this what CLOCK_MONOTONIC[_HR] is for? It's not supposed to jump around at all, so the basic usage model is to use this source for timestamping purposes... Jesse - 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/