Messages in this thread | | | From | "Ulrich Windl" <> | Date | Tue, 14 Feb 2006 07:57:21 +0100 | Subject | Re: 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/
| |