lkml.org 
[lkml]   [2011]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH] sched: fix need_resched() when checking peempt
    From
    When checking if current task could be preempted by a newly woken task,
    further check could be bypassed if the current thread is different from
    the current task of run-queue, and it is corrected accordingly.

    Signed-off-by: Hillf Danton <dhillf@gmail.com>
    ---

    --- tip-git/kernel/sched_rt.c Sun May 22 20:12:01 2011
    +++ sched_rt.c Tue May 24 20:31:27 2011
    @@ -1074,7 +1074,7 @@ static void check_preempt_curr_rt(struct
    * to move current somewhere else, making room for our non-migratable
    * task.
    */
    - if (p->prio == rq->curr->prio && !need_resched())
    + if (p->prio == rq->curr->prio && !test_tsk_need_resched(rq->curr))
    check_preempt_equal_prio(rq, p);
    #endif
    }

    \
     
     \ /
      Last update: 2011-05-24 15:29    [W:0.019 / U:0.772 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site