[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJZ5v0gQDxb0-a5HiEa0vyWCGz01esQBy1fJ4vNXDZJ=GW1W+Q@mail.gmail.com>
Date: Thu, 23 Jan 2025 20:40:56 +0100
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>, Alyssa Rosenzweig <alyssa@...enzweig.io>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Christophe Leroy <christophe.leroy@...roup.eu>, Cristian Marussi <cristian.marussi@....com>,
Fabio Estevam <festevam@...il.com>, Florian Fainelli <florian.fainelli@...adcom.com>,
Hector Martin <marcan@...can.st>, Huacai Chen <chenhuacai@...nel.org>,
Jiaxun Yang <jiaxun.yang@...goat.com>, Jonathan Hunter <jonathanh@...dia.com>,
Kevin Hilman <khilman@...nel.org>, Madhavan Srinivasan <maddy@...ux.ibm.com>,
Markus Mayer <mmayer@...adcom.com>, Matthias Brugger <matthias.bgg@...il.com>,
Michael Ellerman <mpe@...erman.id.au>, Naveen N Rao <naveen@...nel.org>,
Nicholas Piggin <npiggin@...il.com>, Pengutronix Kernel Team <kernel@...gutronix.de>,
Sascha Hauer <s.hauer@...gutronix.de>, Shawn Guo <shawnguo@...nel.org>,
Sudeep Holla <sudeep.holla@....com>, Sven Peter <sven@...npeter.dev>,
Thierry Reding <thierry.reding@...il.com>, WANG Xuerui <kernel@...0n.name>, linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>, arm-scmi@...r.kernel.org,
asahi@...ts.linux.dev, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mediatek@...ts.infradead.org,
linux-mips@...r.kernel.org, linux-omap@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-tegra@...r.kernel.org,
loongarch@...ts.linux.dev
Subject: Re: [PATCH 00/33] cpufreq: manage common sysfs attributes from core
On Thu, Jan 23, 2025 at 12:38 PM Viresh Kumar <viresh.kumar@...aro.org> wrote:
>
> Hello,
>
> Most of the drivers add available and boost frequencies related attributes. This
> patch series tries to avoid duplication and simplify driver's code by managing
> these from core code.
>
> A quick search revealed that only the drivers that set the
> policy->freq_table field, enable these attributes. Which makes sense as
> well, since the show_available_freqs() helper works only if the
> freq_table is present.
>
> In order to simplify drivers, create the relevant sysfs files forcefully
> from cpufreq core.
>
> Pushed here:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/core-attr
Acked-by: Rafael J. Wysocki <rafael@...nel.org>
for the series.
Thanks!
> --
> Viresh
>
> Viresh Kumar (33):
> cpufreq: Always create freq-table related sysfs file
> cpufreq: dt: Stop setting cpufreq_driver->attr field
> cpufreq: acpi: Stop setting common freq attributes
> cpufreq: apple: Stop setting cpufreq_driver->attr field
> cpufreq: bmips: Stop setting cpufreq_driver->attr field
> cpufreq: brcmstb: Stop setting common freq attributes
> cpufreq: davinci: Stop setting cpufreq_driver->attr field
> cpufreq: e_powersaver: Stop setting cpufreq_driver->attr field
> cpufreq: elanfreq: Stop setting cpufreq_driver->attr field
> cpufreq: imx6q: Stop setting cpufreq_driver->attr field
> cpufreq: kirkwood: Stop setting cpufreq_driver->attr field
> cpufreq: longhaul: Stop setting cpufreq_driver->attr field
> cpufreq: loongson: Stop setting cpufreq_driver->attr field
> cpufreq: mediatek: Stop setting cpufreq_driver->attr field
> cpufreq: omap: Stop setting cpufreq_driver->attr field
> cpufreq: p4: Stop setting cpufreq_driver->attr field
> cpufreq: pasemi: Stop setting cpufreq_driver->attr field
> cpufreq: pmac: Stop setting cpufreq_driver->attr field
> cpufreq: powernow: Stop setting cpufreq_driver->attr field
> cpufreq: powernv: Stop setting common freq attributes
> cpufreq: qcom: Stop setting cpufreq_driver->attr field
> cpufreq: qoriq: Stop setting cpufreq_driver->attr field
> cpufreq: sc520_freq: Stop setting cpufreq_driver->attr field
> cpufreq: scmi: Stop setting cpufreq_driver->attr field
> cpufreq: scpi: Stop setting cpufreq_driver->attr field
> cpufreq: sh: Stop setting cpufreq_driver->attr field
> cpufreq: spear: Stop setting cpufreq_driver->attr field
> cpufreq: speedstep: Stop setting cpufreq_driver->attr field
> cpufreq: tegra: Stop setting cpufreq_driver->attr field
> cpufreq: vexpress: Stop setting cpufreq_driver->attr field
> cpufreq: virtual: Stop setting cpufreq_driver->attr field
> cpufreq: Remove cpufreq_generic_attrs
> cpufreq: Stop checking for duplicate available/boost freq attributes
>
> drivers/cpufreq/acpi-cpufreq.c | 1 -
> drivers/cpufreq/apple-soc-cpufreq.c | 8 --------
> drivers/cpufreq/bmips-cpufreq.c | 1 -
> drivers/cpufreq/brcmstb-avs-cpufreq.c | 1 -
> drivers/cpufreq/cpufreq-dt.c | 8 --------
> drivers/cpufreq/cpufreq.c | 15 +++++++++++++++
> drivers/cpufreq/davinci-cpufreq.c | 1 -
> drivers/cpufreq/e_powersaver.c | 1 -
> drivers/cpufreq/elanfreq.c | 1 -
> drivers/cpufreq/freq_table.c | 8 --------
> drivers/cpufreq/imx6q-cpufreq.c | 1 -
> drivers/cpufreq/kirkwood-cpufreq.c | 1 -
> drivers/cpufreq/longhaul.c | 1 -
> drivers/cpufreq/loongson2_cpufreq.c | 1 -
> drivers/cpufreq/loongson3_cpufreq.c | 1 -
> drivers/cpufreq/mediatek-cpufreq-hw.c | 1 -
> drivers/cpufreq/mediatek-cpufreq.c | 1 -
> drivers/cpufreq/omap-cpufreq.c | 1 -
> drivers/cpufreq/p4-clockmod.c | 1 -
> drivers/cpufreq/pasemi-cpufreq.c | 1 -
> drivers/cpufreq/pmac32-cpufreq.c | 1 -
> drivers/cpufreq/pmac64-cpufreq.c | 1 -
> drivers/cpufreq/powernow-k6.c | 1 -
> drivers/cpufreq/powernow-k7.c | 1 -
> drivers/cpufreq/powernow-k8.c | 1 -
> drivers/cpufreq/powernv-cpufreq.c | 2 --
> drivers/cpufreq/qcom-cpufreq-hw.c | 7 -------
> drivers/cpufreq/qoriq-cpufreq.c | 1 -
> drivers/cpufreq/sc520_freq.c | 1 -
> drivers/cpufreq/scmi-cpufreq.c | 8 --------
> drivers/cpufreq/scpi-cpufreq.c | 1 -
> drivers/cpufreq/sh-cpufreq.c | 1 -
> drivers/cpufreq/spear-cpufreq.c | 1 -
> drivers/cpufreq/speedstep-centrino.c | 1 -
> drivers/cpufreq/speedstep-ich.c | 1 -
> drivers/cpufreq/speedstep-smi.c | 1 -
> drivers/cpufreq/tegra186-cpufreq.c | 1 -
> drivers/cpufreq/tegra194-cpufreq.c | 1 -
> drivers/cpufreq/vexpress-spc-cpufreq.c | 1 -
> drivers/cpufreq/virtual-cpufreq.c | 1 -
> include/linux/cpufreq.h | 1 -
> 41 files changed, 15 insertions(+), 75 deletions(-)
>
> --
> 2.31.1.272.g89b43f80a514
>
Powered by blists - more mailing lists