Re: gettimeofday non-monotonic on SMP 2.3.47

From: Andrea Arcangeli (andrea@suse.de)
Date: Thu Mar 02 2000 - 18:25:00 EST


On Thu, 2 Mar 2000, Boris Okun wrote:

>Another question, why do we bother updating xtime on timer interrupts,
>when we can do it
>in do_gettimeofday only?(I assume using TSC).

Most of the time you need only to know the seconds information. So you
want to use the fast CURRENT_TIME for that. Also think
gettimeofday/CURRENT_TIME can be called houndred of times per timer irq so
it really worth to take the slow stuff in the timer irq than in a fast
path like gettimeofday.

Andrea

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



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:13 EST