[lkml]   [2007]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] CDROM: replace jiffies busyloop with msleep
    On 05/23/2007 09:34 PM, Alan Cox wrote:

    >> driver was snappy in that regard. When I replaced our sleeping loop with a
    >> busy-wait same as the original the snappyness returned and moreover, reading
    >> the TOC from the CD went from something close to a minute to approximately a
    >> second. Thought that minute was just because I was dealing with an old junk
    >> 1-speed drive...
    > It happens. If you want to be fairer you can check need_resched in the
    > loop so that you still share the CPU fairly with other users.

    Thanks for the tip -- I'll do this.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-05-23 21:43    [W:0.020 / U:8.864 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site