2023-01-09 19:27:10

by John Moon

[permalink] [raw]
Subject: Out-of-tree devfreq governor header

Hi all,

We have an out-of-tree devfreq governor which uses the "governor.h"
header from "drivers/devfreq". The source code for the governor is
public on CodeLinaro [1].

Currently, the driver directly includes the "governor.h" header even
though it's not a public header. A comment at the top of "governor.h"
says explicitly: "This header is for devfreq governors in drivers/devfreq/".

Could you please advise the best way to use this private devfreq header
from an out-of-tree governor? Could we move the header into "include/linux"?

[1]:
https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/graphics-kernel/-/blob/gfx-kernel.lnx.1.0.r3-rel/governor_msm_adreno_tz.c#L20

Thanks,
John