Re: [PATCH] devreq: move governor.h to a public header location
From: Jie Zhan
Date: Sat Sep 27 2025 - 22:02:09 EST
On 9/26/2025 6:33 PM, Jon Hunter wrote:
>
> 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
>
Got it, thanks.