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

From: Boris Okun (bokun@home.com)
Date: Thu Mar 09 2000 - 11:50:31 EST


Andrea Arcangeli wrote:
>
> 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).

Perhaps a better solution would be to get tsc's of all cpu's at the
interrupt.
But how do I do that, i.e. how to to read tsc of another processor? I
asked this question many times, but the only answer I got is that I
don't wanna do it, and I really do.

Boris

-
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:16 EST