#define HZ 100
> I understand that the initial mmap is higher latency but that is
> just on the initial call... Every one after that is just a read from
> memory.
The stock gettimeofday doesn't just return xtime. It uses `rdtsc' (on
Intel) to see how long it's been since the last timer tick (when xtime
was updated). See arch/i386/kernel/time.c, grep for do_gettimeoffset.
Obviously your solution is unable to make this correction. More's the
pity, I liked it otherwise.
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/