Re: 2.6.11 timeval_to_jiffies() wrong for ms resolution timers

From: Thomas Gleixner
Date: Wed May 25 2005 - 16:43:44 EST


On Wed, 2005-05-25 at 13:02 -0700, George Anzinger wrote:
> We ARE trying to get this into the main line, but save the patch, there is no
> way to get millisecond accuracy in the kernel OR in user land. Never has been!
> That is why the patch exists. There was an effort by some university folks
> prior to the HRT stuff, but AFAIK it is not supported or uptodate.

It's up to date and supported, if you are talking about the KURT
project. Just the website is hopelessly out of date.

> As for jiffies vs time, my understanding from senior time folks is that 1/HZ as
> a resolution is just an approximation. We do the best we can but the x86 is
> really the PITs (pun intended) when it comes to time keeping resources. If you
> really want millisecond accuracy, you may need to consider another platform....

Why so ? Accepted PIT, is a PITA due to the ISA access penalty, but it
still allows you to run timers below millisecond accuracy.

tglx




-
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/