lkml.org 
[lkml]   [2006]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: 2.6.15:kernel/time.c: The Nanosecond and code duplication
On 13 Feb 2006 at 13:11, Christoph Lameter wrote:

> On Mon, 13 Feb 2006, Ulrich Windl wrote:
>
> > There's a hacked-on getnstimeofday() which, what I discovered doesn't actually
> > pass along the nanosecond resolution of xtime. It does:
>
> This is the fall back function for arches without nanosecond
> resolution....

Like the i386 family? Having seen some more of the code, I found that the posix-
timers.c also has it's own family of time routines (plus routines that seem quite
hard to use inside the kernel, so I added just another wrapper). I really think
these are too many functions all dealing with getting the current time. I really
think that nowadays all lower resolution clocks should be derived from the POSIX
time routines (I'm talking about the concept, not a particular implementation).

>
> > The proper solution most likely is to define POSIX compatible routines with
> > nanosecond resolution, and then define the microsecond-resolution from those, and
> > not the other way round.
>
> Right.

;-)

Regards,
Ulrich

-
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/

\
 
 \ /
  Last update: 2006-02-14 08:00    [W:0.319 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site