sched/fair: Optimize enqueue_task_fair()
authorVincent Guittot <vincent.guittot@linaro.org>
Wed, 13 May 2020 13:55:02 +0000 (15:55 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 May 2020 18:34:13 +0000 (20:34 +0200)
commit7d148be69e3a0eaa9d029a3c51b545e322116a99
tree9397bb89403a5c316caf3151ead6074d72a78b58
parent9013196a467e770e1470cccee6c0fe435ef37c66
sched/fair: Optimize enqueue_task_fair()

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.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Phil Auld <pauld@redhat.com>
Link: https://lkml.kernel.org/r/20200513135502.4672-1-vincent.guittot@linaro.org
kernel/sched/fair.c