Re: [PATCH] Use of TSC with SMP and different CPU's

From: Andrea Arcangeli (andrea@suse.de)
Date: Wed Mar 08 2000 - 23:05:56 EST


On Wed, 8 Mar 2000, Boris Okun wrote:

>This patch allows to use do_fast_gettimeofday() (and
>do_slow_gettimeofday as well) on SMP machines with processors running
>at different speeds.[..]

The timer irq could keep running on the same CPU with irq disabled for
more than the rtdsc lower 32bits wrap around. Thus the per-cpu rdtsc info
has to be 64bit wide in your case (in the current 2.2.x code it doesn't
need that because it's _not_ a per-cpu info because we rely on the TSCs to
be in sync).

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 : Wed Mar 15 2000 - 21:00:15 EST