1. 10 5月, 2007 39 次提交
  2. 09 5月, 2007 1 次提交
    • A
      revert 'sched: redundant reschedule when set_user_nice() boosts a prio of a... · d5f9f942
      Andrew Morton 提交于
      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: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d5f9f942