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

From: Jacob Pan
Date: Wed Jan 13 2016 - 11:22:33 EST

On Wed, 13 Jan 2016 10:47:26 +0100 (CET)
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:

> So here you actually use that new (misnomed) function, but for
> > +static void power_limit_irq_save_cpu(void *info)
> and
> > +static void power_limit_irq_restore_cpu(void *info)
> you use a bog standard smp function call. What's the benefit of
> adding that rmw function over a bog standard smp function call if you
> can only use it for one instance of the same pattern?
> Boris asked you the same question here
> but you decided to ignore it.

Thanks for bring this out. I didn't mean to ignore. I thought my point
was stated in the commit message there was no point of going back and
forth. Read-Modify-Write is quite common, not just for RAPL could be
used by future code. Sorry if I wasn't clear.