RE: [PATCH RESEND v2] devfreq: move governor.h to a public header location
From: MyungJoo Ham
Date: Thu Nov 06 2025 - 19:58:12 EST
>Sender: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
>Date: 2025-10-31 03:26 (GMT+9)
>Title: [PATCH RESEND v2] devfreq: move governor.h to a public header location
>
>Some device drivers (and out-of-tree modules) might want to define
>device-specific device governors. Rather than restricting all of them to
>be a part of drivers/devfreq/ (which is not possible for out-of-tree
>drivers anyway) move governor.h to include/linux/devfreq-governor.h and
>update all drivers to use it.
>
>The devfreq_cpu_data is only used internally, by the passive governor,
>so it is moved to the driver source rather than being a part of the
>public interface.
Hi!
Could you please direct me to the governors or drivers needing this?
(Qualcomm drivers?)
Cheers,
MyungJoo
>
>Reported-by: Robie Basak <robibasa@xxxxxxxxxxxxxxxx>
>Acked-by: Jon Hunter <jonathanh@xxxxxxxxxx>
>Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
>---
>Changes in v2:
>- Fixed typo in commit subject (Mikko Perttunen)
>- Link to v1: https://lore.kernel.org/r/20250903-governor-public-v1-1-111abd89a89a@xxxxxxxxxxxxxxxx
>---
>drivers/devfreq/devfreq.c 2 +-
>drivers/devfreq/governor_passive.c 27 +++++++++++++++++-
>drivers/devfreq/governor_performance.c 2 +-
>drivers/devfreq/governor_powersave.c 2 +-
>drivers/devfreq/governor_simpleondemand.c 2 +-
>drivers/devfreq/governor_userspace.c 2 +-
>drivers/devfreq/hisi_uncore_freq.c 3 +-
>drivers/devfreq/tegra30-devfreq.c 3 +-
>.../governor.h => include/linux/devfreq-governor.h 33 +++-------------------
>9 files changed, 37 insertions(+), 39 deletions(-)
>
>