Commit 68c626b0 authored by Viresh Kumar's avatar Viresh Kumar Committed by Chromeos LUCI
Browse files

UPSTREAM: 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: default avatarIonela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Tested-by: default avatarIonela Voinescu <ionela.voinescu@arm.com>
Link: https://lore.kernel.org/r/a732e71ab9ec28c354eb28dd898c9b47d490863f.1610104461.git.viresh.kumar@linaro.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
(cherry picked from commit 47b10b73)

BUG=b:249685960
TEST=Build

Change-Id: Idcb3814b83ce1d6ead6ed9d535d80b9efd5048ff
Signed-off-by: default avatarMasami Hiramatsu <mhiramat@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3939331


Reviewed-by: default avatarSuleiman Souhlal <suleiman@chromium.org>
Reviewed-by: default avatarSean Paul <sean@poorly.run>
parent 75d2fae5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment