Re: [PATCH 08/11] powercap/intel_rapl: Support multi-die/package

From: Len Brown
Date: Thu Feb 21 2019 - 00:44:27 EST


On Wed, Feb 20, 2019 at 6:02 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> > list_for_each_entry(rp, &rapl_packages, plist) {
> > @@ -1457,7 +1457,7 @@ static void rapl_remove_package(struct rapl_package *rp)
> > /* called from CPU hotplug notifier, hotplug lock held */
> > static struct rapl_package *rapl_add_package(int cpu)
> > {
> > - int id = topology_physical_package_id(cpu);
> > + int id = topology_unique_die_id(cpu);
> > struct rapl_package *rp;
> > int ret;
>
> And now your new function names are misnomers.

That is fair.

Seems that a subsequent re-name-only patch is appropriate.

Len Brown, Intel Open Source Technology Center