Re: [PATCH] sched: fix env->src_cpu for active migration

2013-02-13 Thread Paul Turner
On Tue, Feb 12, 2013 at 5:19 AM, Vincent Guittot wrote: > need_active_balance uses env->src_cpu which is set only if there is more > than 1 task on the run queue. > We must set the src_cpu field unconditionnally > otherwise the test "env->src_cpu > env->dst_cpu" will always fail if there is > only

Re: [PATCH v3] sched: fix wrong rq's runnable_avg update with rt task

2013-02-13 Thread Paul Turner
On Wed, Feb 13, 2013 at 12:54 AM, Vincent Guittot wrote: > When a RT task is scheduled on an idle CPU, the update of the rq's load is > not done because CFS's functions are not called. Then, the idle_balance, > which is called just before entering the idle function, updates the > rq's load and mak