Re: [PATCH] devreq: move governor.h to a public header location

From: Jon Hunter

Date: Fri Sep 26 2025 - 06:34:22 EST



On 26/09/2025 04:16, Jie Zhan wrote:

Hi Dmitry,

On 9/3/2025 9:43 PM, Dmitry Baryshkov wrote:
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.

For out-of-tree module compilation, can it add drivers/devfreq/ to the
include path?
I suppose this is unnecessary.

The kernel header/source package created for most linux distros will not included this header because it is internal and so in that case it is necessary.

Jon

--
nvpublic