Skip to content

Commit 88ea0f2

Browse files
committed
Merge branches 'pm-cpufreq' and 'pm-devfreq'
* pm-cpufreq: acpi-cpufreq: De-register CPU notifier and free struct msr on error. * pm-devfreq: PM / devfreq: Disable Exynos4 driver build on multiplatform
3 parents 82e1805 + eb8c68e + ba7abeb commit 88ea0f2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ static void __init acpi_cpufreq_boost_init(void)
919919
}
920920
}
921921

922-
static void __exit acpi_cpufreq_boost_exit(void)
922+
static void acpi_cpufreq_boost_exit(void)
923923
{
924924
if (msrs) {
925925
unregister_cpu_notifier(&boost_nb);
@@ -969,9 +969,10 @@ static int __init acpi_cpufreq_init(void)
969969
acpi_cpufreq_boost_init();
970970

971971
ret = cpufreq_register_driver(&acpi_cpufreq_driver);
972-
if (ret)
972+
if (ret) {
973973
free_acpi_perf_data();
974-
974+
acpi_cpufreq_boost_exit();
975+
}
975976
return ret;
976977
}
977978

drivers/devfreq/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ comment "DEVFREQ Drivers"
6767

6868
config ARM_EXYNOS4_BUS_DEVFREQ
6969
bool "ARM Exynos4210/4212/4412 Memory Bus DEVFREQ Driver"
70-
depends on CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412
70+
depends on (CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412) && !ARCH_MULTIPLATFORM
7171
select ARCH_HAS_OPP
7272
select DEVFREQ_GOV_SIMPLE_ONDEMAND
7373
help

0 commit comments

Comments
 (0)