Skip to content

Commit

Permalink
Merge branches 'pm-cpufreq' and 'pm-devfreq'
Browse files Browse the repository at this point in the history
* pm-cpufreq:
  acpi-cpufreq: De-register CPU notifier and free struct msr on error.

* pm-devfreq:
  PM / devfreq: Disable Exynos4 driver build on multiplatform
  • Loading branch information
Rafael J. Wysocki committed Jan 29, 2014
3 parents 82e1805 + eb8c68e + ba7abeb commit 88ea0f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions drivers/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ static void __init acpi_cpufreq_boost_init(void)
}
}

static void __exit acpi_cpufreq_boost_exit(void)
static void acpi_cpufreq_boost_exit(void)
{
if (msrs) {
unregister_cpu_notifier(&boost_nb);
Expand Down Expand Up @@ -969,9 +969,10 @@ static int __init acpi_cpufreq_init(void)
acpi_cpufreq_boost_init();

ret = cpufreq_register_driver(&acpi_cpufreq_driver);
if (ret)
if (ret) {
free_acpi_perf_data();

acpi_cpufreq_boost_exit();
}
return ret;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/devfreq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ comment "DEVFREQ Drivers"

config ARM_EXYNOS4_BUS_DEVFREQ
bool "ARM Exynos4210/4212/4412 Memory Bus DEVFREQ Driver"
depends on CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412
depends on (CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412) && !ARCH_MULTIPLATFORM
select ARCH_HAS_OPP
select DEVFREQ_GOV_SIMPLE_ONDEMAND
help
Expand Down

0 comments on commit 88ea0f2

Please sign in to comment.