Re: [RFC PATCH v1 2/2] sched: fix group_capacity for thread levelconsolidation

From: Vaidyanathan Srinivasan
Date: Fri Jan 27 2012 - 04:10:31 EST


* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> [2012-01-25 16:38:06]:

> On Mon, 2012-01-16 at 21:52 +0530, Vaidyanathan Srinivasan wrote:
> > + /*
> > + * If power savings balance is set at this domain, then
> > + * make capacity equal to number of hardware threads to
> > + * accommodate more tasks until capacity is reached.
> > + */
> > + else if (sd->flags & SD_POWERSAVINGS_BALANCE)
> > + sgs.group_capacity =
> > + cpumask_weight(sched_group_cpus(sg));
>
> sg->group_weight perhaps?

Yes, I will correct this. sg->group_weight is updated to the correct
value on sched_domain rebuild in init_sched_groups_power().

--Vaidy

--
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/