Re: 2.6.15:kernel/time.c: The Nanosecond and code duplication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux