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 Tuesday 13 July 2010 03:34:50 pm Samuel Xu wrote:
> Hi, Cascardo:
> Thanks for reply! I just want to get the guide on some sample code of
> HPET usage invoked from kernel mode driver.
You must not use hpet directly to keep track of the time.
There is HW which does not have an hpet, or the kernel may choose a better
(faster, eventually broken hpet timers workarounds, whatever...)
time source to retrieve the time.

> Any directly guide?
Have a look at: include/linux/time.h
An example making a bit use of it is:
drivers/cpufreq/cpufreq_ondemand.c
grepping for time shows some examples.

      Thomas
--
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


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

  Powered by Linux