[PATCH 14/24] sched: Update rq clock on tickless CPUs before calling check_preempt_curr()

2012-12-20 Thread Frederic Weisbecker
check_preempt_wakeup() of fair class needs an uptodate sched clock value to update runtime stats of the current task. When a task is woken up, activate_task() is usually called right before ttwu_do_wakeup() unless the task is already in the runqueue. In this case we need to update the rq clock

[PATCH 14/24] sched: Update rq clock on tickless CPUs before calling check_preempt_curr()

2012-12-20 Thread Frederic Weisbecker
check_preempt_wakeup() of fair class needs an uptodate sched clock value to update runtime stats of the current task. When a task is woken up, activate_task() is usually called right before ttwu_do_wakeup() unless the task is already in the runqueue. In this case we need to update the rq clock