]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: topology: Reorder init_amu_fie() a bit
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Jan 2021 11:16:52 +0000 (16:46 +0530)
committerWill Deacon <will@kernel.org>
Wed, 20 Jan 2021 12:49:40 +0000 (12:49 +0000)
commitc25c94e7dee6732d7dad99925c82f3edaee9523d
tree5161c1cee7615b1d228a2cb6d2a1390192b42592
parentc03f4e79c15ac430ae5d6f62bd75501d1d7ad2f6
arm64: topology: Reorder init_amu_fie() a bit

This patch does a couple of optimizations in init_amu_fie(), like early
exits from paths where we don't need to continue any further, avoid the
enable/disable dance, moving the calls to
topology_scale_freq_invariant() just when we need them, instead of at
the top of the routine, and avoiding calling it for the third time.

Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Link: https://lore.kernel.org/r/a732e71ab9ec28c354eb28dd898c9b47d490863f.1610104461.git.viresh.kumar@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/topology.c