Re: getting cycles in 64 bit resolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux