Re: [PATCH] hrtimers: Special-case zero length sleeps
From: Matthew Garrett
Date: Wed Feb 15 2012 - 15:47:59 EST
On Wed, Feb 15, 2012 at 09:46:27PM +0100, Thomas Gleixner wrote:
> Dammit, we cannot come up with a reasonable definition for special
> casing that stuff simply because you cannot draw a clear boundary what
> to special case and what not. And there is no sensible definition for
> what to do - return right away or go through schedule() or what ever.
>
> sleep(0) is as pointless as sched_yield() and it's about time that we
> stop to create a fucking mess in the kernel just because user space
> programmers refuse to understand how an operating system works and how
> proper programming should be done.
Ok. I'll work on finding how prevelant it is and see if we can kill it
off in userspace.
--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
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/