cpufreq: Allow dynamic switching with CPUFREQ_ETERNAL latency
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Jul 2017 10:12:49 +0000 (15:42 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Jul 2017 22:15:47 +0000 (00:15 +0200)
commitfc4c709fc88d5603b235ba18d11f6dba811e1664
treec8e1a62ff39e359d1fdd20b1fb05e38402e87590
parentfe829ed8ef1f3c7ac22843bd594ef2f6c4044288
cpufreq: Allow dynamic switching with CPUFREQ_ETERNAL latency

With the recent updates, CPUFREQ_ETERNAL is only used by the drivers
which don't know their transition latency but want to use dynamic
switching.

Anyway, the routine cpufreq_policy_transition_delay_us() caps the value
of transition latency to 10 ms now and that can be used safely with such
platforms.

Remove the check from cpufreq_init_governor() and allow dynamic
switching for such configurations as well.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c