lkml.org 
[lkml]   [2013]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v6 3/8] cpufreq:acpi:x86: Adjust the acpi-cpufreq.c code to work with common boost solution
From
On 25 July 2013 22:03, Lukasz Majewski <l.majewski@samsung.com> wrote:
> diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c

> static void __init acpi_cpufreq_boost_init(void)
> {
> + acpi_cpufreq_driver.boost_supported = false;

Would be better if we do this in else of below if.

> if (boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA)) {
> msrs = msrs_alloc();


> @@ -1021,12 +995,11 @@ static int __init acpi_cpufreq_init(void)
> *iter = &cpb;
> }
> #endif
> + acpi_cpufreq_boost_init();

We are calling it before registering cpufreq driver. Will this have
any complications?

> ret = cpufreq_register_driver(&acpi_cpufreq_driver);
> if (ret)
> free_acpi_perf_data();
> - else
> - acpi_cpufreq_boost_init();
>
> return ret;


\
 
 \ /
  Last update: 2013-07-26 10:01    [W:0.351 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site