[PATCH v6 1/3] cpufreq: Export disable_cpufreq()

Aaron Kling via B4 Relay posted 3 patches 3 months ago
[PATCH v6 1/3] cpufreq: Export disable_cpufreq()
Posted by Aaron Kling via B4 Relay 3 months ago
From: Aaron Kling <webgeek1234@gmail.com>

This is used by the tegra124-cpufreq driver.

Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
---
 drivers/cpufreq/cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 0cf5a320bb5e864709b259249fb1af8bfbc0b04b..78cddc78ee98630f99ccc332c64c94f437297177 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -109,6 +109,7 @@ void disable_cpufreq(void)
 {
 	off = 1;
 }
+EXPORT_SYMBOL_GPL(disable_cpufreq);
 static DEFINE_MUTEX(cpufreq_governor_mutex);
 
 bool have_governor_per_policy(void)

-- 
2.50.0
Re: [PATCH v6 1/3] cpufreq: Export disable_cpufreq()
Posted by Rafael J. Wysocki 3 months ago
On Mon, Jul 7, 2025 at 11:17 PM Aaron Kling via B4 Relay
<devnull+webgeek1234.gmail.com@kernel.org> wrote:
>
> From: Aaron Kling <webgeek1234@gmail.com>
>
> This is used by the tegra124-cpufreq driver.
>
> Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
> ---
>  drivers/cpufreq/cpufreq.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> index 0cf5a320bb5e864709b259249fb1af8bfbc0b04b..78cddc78ee98630f99ccc332c64c94f437297177 100644
> --- a/drivers/cpufreq/cpufreq.c
> +++ b/drivers/cpufreq/cpufreq.c
> @@ -109,6 +109,7 @@ void disable_cpufreq(void)
>  {
>         off = 1;
>  }
> +EXPORT_SYMBOL_GPL(disable_cpufreq);

Please add an empty line here.

With that, feel free to add

Acked-by: Rafael J. Wysocki <rafael@kernel.org>

to this patch.

>  static DEFINE_MUTEX(cpufreq_governor_mutex);
>
>  bool have_governor_per_policy(void)
>
> --