On Wed, Jun 01, 2016 at 02:24:29PM +0200, Vincent Guittot wrote: > On 1 June 2016 at 05:41, Yuyang Du <[email protected]> wrote: > > Move new task initialization to sched_fork(). For initial non-fair class > > task, the first switched_to_fair() will do the attach correctly. > > Not sure to catch the explanation. you have only moved and renamed > init_entity_runnable_average but you speak about initial non-fair > class
The non-fair class task mentioning is that I stopped a bit to figure out whether only call sched_fork_fair(), but obviously sched classes can change, so we should call sched_fork. And this patch is ammeneable to the previous fix to switched_to().

