[PATCH v5] sched: fix wrong rq's runnable_avg update with rt tasks

2013-04-09 Thread Vincent Guittot
The current update of the rq's load can be erroneous when RT tasks are involved The update of the load of a rq that becomes idle, is done only if the avg_idle is less than sysctl_sched_migration_cost. If RT tasks and short idle duration alternate, the runnable_avg will not be updated correctly

[PATCH v5] sched: fix wrong rq's runnable_avg update with rt tasks

2013-04-09 Thread Vincent Guittot
The current update of the rq's load can be erroneous when RT tasks are involved The update of the load of a rq that becomes idle, is done only if the avg_idle is less than sysctl_sched_migration_cost. If RT tasks and short idle duration alternate, the runnable_avg will not be updated correctly