On 02/17/2014 05:20 PM, Peter Zijlstra wrote:
[snip]
>>  static void switched_to_fair(struct rq *rq, struct task_struct *p)
>>  {
>> -    if (!p->se.on_rq)
>> +    struct sched_entity *se = &p->se;
>> +#ifdef CONFIG_FAIR_GROUP_SCHED
>> +    se->depth = se->parent ? se->parent->depth + 1 : 0;
>> +#endif
>> +    if (!se->on_rq)
>>              return;
>>  
>>      /*
> 
> Yes indeed. My first idea yesterday was to put it in set_task_rq() to be
> absolutely sure we catch all; but if this is sufficient its better.

Agree, let's wait for Sasha's testing result then :)

Regards,
Michael Wang

> 
> Thanks!
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to