cpufreq: tegra194: save CPU data to avoid repeated SMP calls
authorSumit Gupta <sumitg@nvidia.com>
Wed, 4 Oct 2023 14:05:36 +0000 (19:35 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 10 Oct 2023 05:33:03 +0000 (11:03 +0530)
commit6b121b4cf7e1f598beecf592d6184126b46eca46
treecd0a5827630760f86e0794eed3953754d4c1b34d
parent823a6d9e79fc069a0a77f195aa74c3703b847ca0
cpufreq: tegra194: save CPU data to avoid repeated SMP calls

Currently, we make SMP call on every frequency set request to get the
physical 'CPU ID' and 'CLUSTER ID' for the target CPU. This change
optimizes the repeated calls by storing the physical IDs and the per
core frequency register offset for all CPUs during boot. Later this
info is used directly when required to set the frequency or read it
from ACTMON counters.

Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/tegra194-cpufreq.c