Re: [PATCH v4 2/2] powercap/rapl: reduce ipi calls

From: Jacob Pan
Date: Fri Feb 19 2016 - 17:24:18 EST


On Fri, 19 Feb 2016 23:01:59 +0100 (CET)
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:

> > > + if (lead_cpu < nr_cpu_ids)
> > > + new_package->lead_cpu =
> > > lead_cpu;
> >
> > So the above is identical to
> >
> > new_package->lead_cpu = lead_cpu;
>
> new_package->lead_cpu = i;
you are absolutely right. i is already the answer here.

Thanks,

Jacob