linux-mips
[Top] [All Lists]

Re: Question about generic\time.c 2.4.17

To: Nick Zajerko-McKee <nmckee@telogy.com>
Subject: Re: Question about generic\time.c 2.4.17
From: Jun Sun <jsun@mvista.com>
Date: Wed, 24 Jul 2002 11:23:57 -0700
Cc: linux-mips@oss.sgi.com
References: <1027461913.4699.26.camel@gtlinuxserver1.telogy.design.ti.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408
Nick Zajerko-McKee wrote:
Hi,

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.


do_div64_32() emulate 64bit division with 32bit registers/values. do_fast_gettimeoffset() gives the intra-jiffy time offset, which yields higher timer resolution.

Take a look of /Documentation/mips/time.README.

Jun


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