[PATCH 2/2] CFS CGroup: Report usage

Srivatsa Vaddagiri vatsa at linux.vnet.ibm.com
Tue Oct 23 09:43:07 PDT 2007


On Mon, Oct 22, 2007 at 05:49:39PM -0700, Paul Menage wrote:
> +	for_each_possible_cpu(i) {
> +		unsigned long flags;
> +		spin_lock_irqsave(&tg->cfs_rq[i]->rq->lock, flags);

A simpler form of this would be just:

		spin_lock_irqsave(&cpu_rq(i)->lock, flags);

-- 
Regards,
vatsa


More information about the Containers mailing list