Re: [patch 2.6.26] /dev/hpet - fixes and cleanup
From: Clemens Ladisch
Date: Thu Jul 24 2008 - 07:36:19 EST
David Brownell wrote:
> I didn't find any software using /dev/hpet, except for
> the example in Documentation/hpet.txt ... presumably I
> was looking in the wrong place. I'd surely have retched
> at anything mmapping hardware registers though. ;)
http://subversion.jackaudio.org/jack/trunk/jack/config/os/gnu-linux/time.c
> > 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.
>
> I'll leave that part up to someone else. If POSIX timers
> are a sufficient userspace interface, great ... then that
> mmap son't really be needed either!
The idea is to be able to get a high-precision timer value without doing
a syscall. (Whether the syscall overhead actually matters in a specific
application is another question.)
Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/