sched/fair: Move call to list_last_entry() in detach_tasks
authorVincent Guittot <vincent.guittot@linaro.org>
Thu, 25 Aug 2022 12:27:25 +0000 (14:27 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 15 Sep 2022 14:13:52 +0000 (16:13 +0200)
commit7e9518baed4cef76dbfa07cbffbae1e6dbc87be6
tree068e7c4f1c5b1f2c0bd706b986c641366a76d913
parentc59862f8265f8060b6650ee1dc12159fe5c89779
sched/fair: Move call to list_last_entry() in detach_tasks

Move the call to list_last_entry() in detach_tasks() after testing
loop_max and loop_break.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220825122726.20819-4-vincent.guittot@linaro.org
kernel/sched/fair.c