Re: [PATCH] sched: Call update_group_power only for local_group

From: Suresh Siddha
Date: Thu Jul 08 2010 - 13:51:01 EST


On Thu, 2010-07-08 at 10:49 -0700, Peter Zijlstra wrote:
> On Thu, 2010-07-08 at 10:45 -0700, Suresh Siddha wrote:
> >
> > @@ -2456,6 +2454,9 @@ static inline void update_sd_lb_stats(struct sched_domain *sd, int this_cpu,
> > init_sd_power_savings_stats(sd, sds, idle);
> > load_idx = get_sd_load_idx(sd, idle);
> >
> > + if (this_cpu == smp_processor_id())
> > + update_group_power(sd, this_cpu);
> > +
> > do {
> > int local_group;
>
> Which will break for nohz_idle_balance..

Then the logic is broken somewhere because update_group_power() reads
APERF/MPERF MSR's which doesn't make sense when this_cpu !=
smp_processor_id(). What am I missing?

thanks,
suresh

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/