lkml.org 
[lkml]   [2008]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 2.6.26] /dev/hpet - fixes and cleanup
David Brownell wrote:
> * Tighten and correct the userspace interface code
> ...
> + only open comparators that have an interrupt, and can thus
> perform "real work"

This prevents userspace applications from doing mmap() on /dev/hpet
even if there is no interrupt.

This seems to be the only part of the userspace interface that is
used in practice. Because of the availability of POSIX timers, it might
make sense to deprecate the HPET ioctl interface.

> And re that kernel interface: IMO, worth having a relatively
> generic interface for hardware timers instead of inventing a new
> interface for each new bit of hardware.

AFAIK it was intended to be similar to the RTC callback interface, but
that was before the generic high-precision timer stuff was introduced.


Regards,
Clemens


\
 
 \ /
  Last update: 2008-07-23 09:47    [W:0.415 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site