[PATCH 6/7] sched/fair: Reorder code in update_sd_lb_stats()

2016-04-29 Thread Dietmar Eggemann
Do the update of total load and total capacity of sched_domain statistics before detecting if it is the local group. This and the inclusion of sg=sg->next into the condition of the do...while loop makes the code easier to read. Signed-off-by: Dietmar Eggemann ---

[PATCH 6/7] sched/fair: Reorder code in update_sd_lb_stats()

2016-04-29 Thread Dietmar Eggemann
Do the update of total load and total capacity of sched_domain statistics before detecting if it is the local group. This and the inclusion of sg=sg->next into the condition of the do...while loop makes the code easier to read. Signed-off-by: Dietmar Eggemann --- kernel/sched/fair.c | 14