Messages in this thread | | | Subject | Re: [PATCH] RTC: Add mmap method to rtc character driver | From | Arjan van de Ven <> | Date | Tue, 25 Jul 2006 21:06:52 +0200 |
| |
> > well the idea that has been tossed about a few times is using a vsyscall > > function that either calls into the kernel, or directly uses the hpet > > page (which can be user mapped) to get time information that way... > > or even would use rdtsc in a way the kernel knows is safe (eg corrected > > for the local cpu's speed and offset etc etc). > > > Ok, that makes sense, although thats only going to be supportable on hpet > enabled systems right?
well it's only going to be *fast* on hpet enabled systems (which should be the *vast* majority nowadays if it wasn't for some silly bios defaults by some vendors); all others can just fall back to other methods. The beauty of the vsyscall concept :)
-- if you want to mail me at work (you don't), use arjan (at) linux.intel.com
- 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/
| |