linux-mips
[Top] [All Lists]

Re: [PATCH] gettimeoffset for swarm

To: Jun Sun <jsun@mvista.com>
Subject: Re: [PATCH] gettimeoffset for swarm
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 14 May 2002 15:18:49 +0200 (MET DST)
Cc: ralf@oss.sgi.com, linux-mips@oss.sgi.com
In-reply-to: <3CE073D0.8030402@mvista.com>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Mon, 13 May 2002, Jun Sun wrote:

> By default, swarm will use calibrate_div64_gettimeoffset().  That does
> not work in SMP mode because the two cores have different counter register
> value.  This patch gives swarm its own and accurate gettimeoffset().

 You may consider synchronising the counters as it's done for the i386,
instead.  See synchronize_tsc_ap().  It may be useful for other purposes
as well. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


<Prev in Thread] Current Thread [Next in Thread>