Re: [PATCH] RTC: Add mmap method to rtc character driver

Keith Packard
2006-07-29T22:45:25Z

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

On Sat, 2006-07-29 at 17:43 -0400, Neil Horman wrote:

> Sure, an mmaped jiffy counter would certainly be usefull. I think the only
> thing left to be determined in this thread is if adding mmap to the rtc driver
> has any merit regardless of any potential users (iow, would current users of
> /dev/rtc find it helpful to have the rtc driver provide an mmap interface.)

A jiffy counter is sufficient for the X server; all I need is some
indication that time has passed with a resolution of 10 to 20 ms. I
check this after each X request is processed as that is the scheduling
granularity. An X request can range in time from .1us to 100 seconds, so
I really want to just check after each request rather than attempt some
heuristic.

--
keith.packard@intel.com

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]