lkml.org 
[lkml]   [2006]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] RTC: Add mmap method to rtc character driver
Date
> 	At OLS last week, During Dave Jones Userspace Sucks presentation, Jim
> Geddys and some of the Xorg guys noted that they would be able to
> stop using gettimeofday
> so frequently, if they had some other way to get a millisecond
> resolution timer
> in userspace, one that they could perhaps read from a memory mapped
> page. I was
> right behind them and though that seemed like a reasonable
> request, so I've
> taken a stab at it. This patch allows for a page to be mmaped
> from /dev/rtc
> character interface, the first 4 bytes of which provide a regularly
> increasing
> count, once every rtc interrupt. The frequency is of course
> controlled by the
> regular ioctls provided by the rtc driver. I've done some basic
> testing on it,
> and it seems to work well.

Similar functionality is already available via VDSO on
platforms that support it (currently PowerPC and AMD64?) --
seems like a better way forward.


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-25 20:01    [W:2.133 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site