cpufreq: tegra194: Remove unnecessary frequency calculation
authorJon Hunter <jonathanh@nvidia.com>
Wed, 2 Dec 2020 09:14:18 +0000 (09:14 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 7 Dec 2020 07:32:44 +0000 (13:02 +0530)
commit93549516d44681261d2d209186449c6125beccc1
tree795a82157b295e10dabbf08f0f3fa3b16d80d924
parentcfef4bcaccf35f0b80acc5c79967996b2eb88ba6
cpufreq: tegra194: Remove unnecessary frequency calculation

The Tegra194 CPUFREQ driver sets the CPUFREQ_NEED_INITIAL_FREQ_CHECK
flag which means that the CPUFREQ framework will call the 'get' callback
on boot to determine the current frequency of the CPUs. Therefore, it is
not necessary for the Tegra194 CPUFREQ driver to internally call the
tegra194_get_speed_common() during initialisation to query the current
frequency as well. Fix this by removing the call to the
tegra194_get_speed_common() during initialisation and simplify the code.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/tegra194-cpufreq.c