Re: How to read time stamp from HPET timer from device driver?

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

 



On Tue, Jul 13, 2010 at 05:39:11PM +0800, Samuel Xu wrote:
> I tried hpet_readl() from my driver code, while hit compiling error.
> is it a correct API for kernel driver to invoke? any more hint?
> 

What are you trying to do exactly? Using TSC or HPET is not
platform-independent. You may take a look at hrtimers.

Regards,
Cascardo.

> 2010/7/13 Samuel Xu <samuel.xu.tech@xxxxxxxxx>:
> > HI:
> > I am a freshman for HPET timer. Previously, I use TSC counter, to use
> > rdtsc to get the time stamp. elapsed cycle can be counter from 2 time
> > stamps.
> > As a advanced replacement of TSC, I suppose HPET timer can be
> > conveniently to read time stamp from both kernel mode user  and user
> > mode apps.
> > While I failed to find a way to get time stamp value of HPET in Linux
> > kenerl (I am doing a driver and want to know elapsed cycle from driver
> > code).
> >
> > Anyone can help me?
> >
> > Thanks!
> >
> > Samuel
> >
> --
> To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux