lkml.org 
[lkml]   [2016]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/9] sched: add schedule_timeout_idle()
    On Tue, Mar 22, 2016 at 12:00:18PM +0100, Michal Hocko wrote:

    > extern signed long schedule_timeout_interruptible(signed long timeout);
    > extern signed long schedule_timeout_killable(signed long timeout);
    > extern signed long schedule_timeout_uninterruptible(signed long timeout);
    > +extern signed long schedule_timeout_idle(signed long timeout);

    > +/*
    > + * Like schedule_timeout_uninterruptible(), except this task will not contribute
    > + * to load average.
    > + */
    > +signed long __sched schedule_timeout_idle(signed long timeout)
    > +{
    > + __set_current_state(TASK_IDLE);
    > + return schedule_timeout(timeout);
    > +}
    > +EXPORT_SYMBOL(schedule_timeout_idle);

    Yes we have 3 such other wrappers, but I've gotta ask: why? They seem
    pretty pointless.

    Why not kill the lot?

    \
     
     \ /
      Last update: 2016-03-22 14:01    [W:4.142 / U:1.532 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site