Re: [PATCH v3] sched/fair: enqueue_task_fair optimization

2020-05-13 Thread Vincent Guittot
On Wed, 13 May 2020 at 17:51, Tao Zhou wrote: > > Hi Vincent, > > Sorry for the duplicate. > > On Wed, May 13, 2020 at 03:55:02PM +0200, Vincent Guittot wrote: > > enqueue_task_fair jumps to enqueue_throttle label when cfs_rq_of(se) is > > throttled which means that se can't be NULL in such case a

[PATCH v3] sched/fair: enqueue_task_fair optimization

2020-05-13 Thread Vincent Guittot
enqueue_task_fair jumps to enqueue_throttle label when cfs_rq_of(se) is throttled which means that se can't be NULL in such case and we can move the label after the if (!se) statement. Futhermore, the latter can be removed because se is always NULL when reaching this point. Reviewed-by: Phil Auld