[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: Jun Sun <>
Date: Wed, 24 Jul 2002 11:23:57 -0700
References: <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408
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.

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.


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