Skip to content

Commit

Permalink
cpufreq: Export acpu_cpufreq_exit for other drivers to call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
superm1 authored and intel-lab-lkp committed Mar 29, 2022
1 parent d7c37bc commit 86835ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/cpufreq/acpi-cpufreq.c
Expand Up @@ -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__);

Expand All @@ -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,
Expand Down

0 comments on commit 86835ef

Please sign in to comment.