Another little diff.

--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4647,8 +4647,10 @@ static inline void update_sd_lb_stats(st
                int local_group;
 
                local_group = cpumask_test_cpu(env->dst_cpu, 
sched_group_cpus(sg));
-               if (local_group)
+               if (local_group) {
+                       sds->this = sg;
                        sgs = &sds->this_stat;
+               }
 
                memset(sgs, 0, sizeof(*sgs));
                update_sg_lb_stats(env, sg, load_idx, local_group, sgs);
@@ -4671,9 +4673,7 @@ static inline void update_sd_lb_stats(st
                sds->total_load += sgs->group_load;
                sds->total_pwr += sg->sgp->power;
 
-               if (local_group)
-                       sds->this = sg;
-               else if (update_sd_pick_busiest(env, sds, sg, sgs)) {
+               if (!local_group && update_sd_pick_busiest(env, sds, sg, sgs)) {
                        sds->busiest = sg;
                        sds->busiest_stat = *sgs;
                }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to