cpufreq: tegra186: Simplify cluster information lookup
authorJon Hunter <jonathanh@nvidia.com>
Wed, 2 Dec 2020 09:14:17 +0000 (09:14 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 7 Dec 2020 07:32:44 +0000 (13:02 +0530)
commitcfef4bcaccf35f0b80acc5c79967996b2eb88ba6
tree539106df0d0be085b6806d8c614e7ad3da8d3978
parentb7b4e785520ff87383ab5131f903544a261e83a1
cpufreq: tegra186: Simplify cluster information lookup

The CPUFREQ driver framework references each individual CPUs when
getting and setting the speed. Tegra186 has 3 clusters of A57 CPUs and
1 cluster of Denver CPUs. Hence, the Tegra186 CPUFREQ driver need to
know which cluster a given CPU belongs to. The logic in the Tegra186
driver can be greatly simplified by storing the cluster ID associated
with each CPU in the tegra186_cpufreq_cpu structure. This allow us to
completely remove the Tegra cluster info structure from the driver and
simplifiy the code.

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