RE: Re: [PATCH RESEND v2] devfreq: move governor.h to a public header location

From: MyungJoo Ham

Date: Fri Nov 14 2025 - 22:46:10 EST


>On Fri, Nov 07, 2025 at 09:58:09AM +0900, MyungJoo Ham wrote:
>> >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?)
>
>This has been prompted by the Qualcomm KGSL driver:
>
>- https://protect2.fireeye.com/v1/url?k=f6bd3b8e-a92112a4-f6bcb0c1-000babe598f7-61920f21ff9de708&q=1&e=8591e0e4-db8b-428a-84a2-250662bb2f1b&u=https%3A%2F%2Fgithub.com%2Fqualcomm-linux%2Fkgsl
>- https://protect2.fireeye.com/v1/url?k=47a092b9-183cbb93-47a119f6-000babe598f7-7e1401a14df18a21&q=1&e=8591e0e4-db8b-428a-84a2-250662bb2f1b&u=https%3A%2F%2Fgithub.com%2Fqualcomm-linux%2Fkgsl%2Fissues%2F11
>
>But I think this issue is not limited to the KGSL driver. Other
>out-of-tree modules might also implement device-specific governors.

Ok, I see.
It look good to move to the common include directory.

Acked-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>

Cheers,
MyungJoo

>
>--
>With best wishes
>Dmitry