[Top] [All Lists]

Re: Question about generic\time.c 2.4.17

To: Nick Zajerko-McKee <>
Subject: Re: Question about generic\time.c 2.4.17
From: "Maciej W. Rozycki" <>
Date: Wed, 24 Jul 2002 16:38:03 +0200 (MET DST)
In-reply-to: <>
Organization: Technical University of Gdansk
On 23 Jul 2002, Nick Zajerko-McKee wrote:

> I'm working on a new 4Kc platform and was looking at the
> arch\mips\mips-boards\generic\time.c sources.  Can someone explain to me
> the function of do_fast_gettimeoffset(), especially the do_div64_32()
> assembler routine?  One of the requirements I have will be not modify
> the timer resolution for my platform to something in the msec range w/o
> disturbing the underlying jiffie setup found in linux.

 That's a traditional double-precision division, i.e. in this case it's a
64-bit dividend by a 32-bit divisor with a 32-bit quotient and a 32-bit
remainder (hmm, the code should be obvious).  It isn't used in the file,

+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+        e-mail:, PGP key available        +

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