• Andrew Morton's avatar
    revert 'sched: redundant reschedule when set_user_nice() boosts a prio of a... · d5f9f942
    Andrew Morton authored
    revert 'sched: redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array'
    
    Revert commit bd53f96c.
    
    Con says:
    
    This is no good, sorry. The one I saw originally was with the staircase
    deadline cpu scheduler in situ and was different.
    
      #define TASK_PREEMPTS_CURR(p, rq) \
         ((p)->prio < (rq)->curr->prio)
         (((p)->prio < (rq)->curr->prio) && ((p)->array == (rq)->active))
    
    This will fail to wake up a runqueue for a task that has been migrated to the
    expired array of a runqueue which is otherwise idle which can happen with smp
    balancing,
    
    Cc: Dmitry Adamushko <dmitry.adamushko@gmail.com>
    Cc: Con Kolivas <kernel@kolivas.org>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d5f9f942
sched.c 179 KB