[lkml]   [2012]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] hrtimers: Special-case zero length sleeps
    On Wed, Feb 15, 2012 at 09:14:30PM +0100, Thomas Gleixner wrote:

    > Just for the extended fun of it: The pre hrtimer implementation in
    > Linux put the task on sleep as well up to the next jiffies boundary,
    > so anything which used sleep(0) on a pre hrtimer kernel was going to
    > sleep. That's also the case today when high resolution timers are
    > disabled (compile or runtime).
    > So anything which relies on sleep(0) as a fast scheduling point is and
    > has been broken forever.

    Excellent. So the real question is what /should/ sleep(0) do - nothing,
    schedule or sleep for an arbitrary period of time that could be years?

    Matthew Garrett |

     \ /
      Last update: 2012-02-15 21:25    [W:0.148 / U:14.728 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site