linux-mips
[Top] [All Lists]

Re: getting cycles in 64 bit resolution

To: Gilad Benjamini <yaelgilad@myrealbox.com>
Subject: Re: getting cycles in 64 bit resolution
From: Jun Sun <jsun@mvista.com>
Date: Tue, 29 Apr 2003 09:32:41 -0700
Cc: linux-mips@linux-mips.org, jsun@mvista.com
In-reply-to: <1051604123.bea267c0yaelgilad@myrealbox.com>; from yaelgilad@myrealbox.com on Tue, Apr 29, 2003 at 08:15:23AM +0000
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1051604123.bea267c0yaelgilad@myrealbox.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5i
On Tue, Apr 29, 2003 at 08:15:23AM +0000, Gilad Benjamini wrote:
> Hi,
> get_cycles provides me the low 32 bit of the number
> of cycles.
> How can I, in a 32 bit system, get the high 32 bit ?
>

CPU counter register only has 32 bit.  You have to 
maintain the upper 32bit yourself if you want 64bit counter.  
You might be able to re-use timerhi variable in arch/mips/kernel/time.c file.

Jun

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