lkml.org 
[lkml]   [2022]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 1/3] cpufreq: Export acpu_cpufreq_exit for other drivers to call
Date
Currently, the only way to load an alternative cpufreq driver is to unload
acpi-cpufreq first.

Loosen that restriction to allow other kernel modules to unregister a
registered driver.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
v1->v2:
* Export symbol instead of changing internals

drivers/cpufreq/acpi-cpufreq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
index 3d514b82d055..92ac978c1c53 100644
--- a/drivers/cpufreq/acpi-cpufreq.c
+++ b/drivers/cpufreq/acpi-cpufreq.c
@@ -1033,7 +1033,7 @@ static int __init acpi_cpufreq_init(void)
return ret;
}

-static void __exit acpi_cpufreq_exit(void)
+void __exit acpi_cpufreq_exit(void)
{
pr_debug("%s\n", __func__);

@@ -1043,6 +1043,7 @@ static void __exit acpi_cpufreq_exit(void)

free_acpi_perf_data();
}
+EXPORT_SYMBOL_GPL(acpi_cpufreq_exit);

module_param(acpi_pstate_strict, uint, 0644);
MODULE_PARM_DESC(acpi_pstate_strict,
--
2.34.1
\
 
 \ /
  Last update: 2022-03-29 04:01    [W:0.059 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site