You are right. I'm not running NTP. Actually, I was using
clockspeed (http://cr.yp.to/clockspeed.html) before, which
adjusts system clock using RDTSC, but I have stopped it to
observe pure system clock.
In the first version my userland gettimeofday, I'm more
interested in how RDTSC could be configured to synchronize with
the system clock, rather than the real world clock time.
To atapt the system clock change, userland gettimeofday should
issue real gettimeofday system call occasionally, as Terje
suggests early in this thread, and adjust calibration
parameters. I'll call it "adaptive userland gettimeofday."
You may not need calibration any longer since it is adaptive.
However, it will be slower and less effective because much
adjusting code should be implemented. So I'm hesitating to
implement adaptive userland gettimeofday :-).
-- OBATA Noboru (noboru@ylug.org) - 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/