From 4e2c20e1e6f915f768d863ab92b2e432d902840e Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Tue, 22 Nov 2016 17:47:55 +0800 Subject: [PATCH] cpufreq: dt: delete flag CPUFREQ_NEED_INITIAL_FREQ_CHECK As there are still some limitations, we prefer to implement it ourselves. Change-Id: Ic801ed0a137b025296144cb3d8e47bcb0f8c0567 Signed-off-by: Finley Xiao --- drivers/cpufreq/cpufreq-dt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 2c566060913e..d4df226e475d 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -349,8 +349,11 @@ static void cpufreq_ready(struct cpufreq_policy *policy) } static struct cpufreq_driver dt_cpufreq_driver = { - .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK | - CPUFREQ_HAVE_GOVERNOR_PER_POLICY, +#ifdef CONFIG_ARCH_ROCKCHIP + .flags = CPUFREQ_STICKY | CPUFREQ_HAVE_GOVERNOR_PER_POLICY, +#else + .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK, +#endif .verify = cpufreq_generic_frequency_table_verify, .target_index = set_target, .get = cpufreq_generic_get, -- 2.34.1