[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJvTdKmg4YwzYGfPZKdAFZCqA6hFROdSVT46iDk0mb1rL-TKvg@mail.gmail.com>
Date: Tue, 26 Mar 2019 14:27:30 -0400
From: Len Brown <lenb@...nel.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: X86 ML <x86@...nel.org>, linux-kernel@...r.kernel.org,
Zhang Rui <rui.zhang@...el.com>,
Len Brown <len.brown@...el.com>,
Linux PM list <linux-pm@...r.kernel.org>
Subject: Re: [PATCH 07/14] powercap/intel_rapl: Simplify rapl_find_package()
On Tue, Feb 26, 2019 at 2:07 PM Peter Zijlstra <peterz@...radead.org> wrote:
>
> On Tue, Feb 26, 2019 at 01:20:05AM -0500, Len Brown wrote:
> > -static struct rapl_package *find_package_by_id(int id)
> > +static struct rapl_package *rapl_find_package(int cpu)
> > {
> > + int id = topology_physical_package_id(cpu);
> > struct rapl_package *rp;
>
> Which you'll change to topology_physical_die_id() in the next patch.
>
> If you respin the series again, could we pick a better name?
Done.
I called this routine "rapl_find_package_domain()" -- since that is
what it does --
it finds what RAPL calls a "Package Domain", no matter if that domain
is implemented in the topology by a die or a physical package.
thanks,
Len Brown, Intel Open Source Technology Center
Powered by blists - more mailing lists