[lkml]   [2010]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC] [PATCH] timer: Added usleep[_range][_interruptable] timer
    Andi Kleen wrote:
    > Patrick Pannuto <> writes:
    > Overall it seems like a good improvement.
    >> +
    >> +static inline void usleep(unsigned long usecs)
    >> +{
    >> + usleep_range(usecs, usecs);
    >> +}
    >> +
    >> +static inline unsigned long usleep_interruptible(unsigned long usecs)
    > Is the interruptible case even needed? I assume most drivers won't
    > bother with that and not being interruptible for a few usecs is not a
    > big issue.

    Honestly, I don't think so, but I was mirroring the msleep API when
    I wrote it so I included it for completeness. I can't think of a use
    case where it is necessary / useful. I will remove it unless anyone
    can think of an application for it?

     \ /
      Last update: 2010-06-24 18:53    [W:0.018 / U:4.216 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site