[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTimTN3FZjRAjFDV-3pSnwq9EEPzfs5-xXBH5KomO@mail.gmail.com>
Date: Tue, 13 Jul 2010 17:45:36 +0800
From: Samuel Xu <samuel.xu.tech@...il.com>
To: linux-kernel@...r.kernel.org
Subject: Question on HPET timer reading from device driver?
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).
I tried hpet_readl() from my driver code, while hit compiling error.
Is it a correct API for kernel driver to invoke?
I also read the Linux Documentation of HPET, which contain a user mode
demo app to generate a periodic timer via HPET, while missing the time
stamp reading.
Any hint?
Thanks!
Samuel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists