Andi Kleen wrote:
quoted text >
> People tend to make jokes about optimizing the idle loop too, but they're
> actually wrong. Exit latency for the idle loop is important -- it
> decides how quickly you can react to load changes on idle CPUs.
>
> For short udelays I suspect shorter exit latency is also moderately useful.
>
> But anyways there are plenty of gtod users outside the X server.
>
> e.g. common not user space case is packet timestamps.
>
It's also very common to put gtod calls around select and poll, because
the standard interface doesn't tell you how long you have been away
(Linux at least used to have it, but glibc "fixed" that...)
-hpa
--
unsubscribe notice 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/
Messages in current thread:
Re: More breakage in native_rdtsc out of line in git-x86 , H. Peter Anvin , (Wed Jan 9, 4:57 pm)