diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2021-12-01 14:05:03 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-02-04 04:54:48 +0100 |
commit | 7734c4b507cefbcf2f7a2a806e79c43e52528c5f (patch) | |
tree | 5e8fb258d2b58b36bedee8e599a31984cc049de8 /drivers/idle | |
parent | cpuidle: qcom-spm: Check if any CPU is managed by SPM (diff) | |
download | linux-7734c4b507cefbcf2f7a2a806e79c43e52528c5f.tar.xz linux-7734c4b507cefbcf2f7a2a806e79c43e52528c5f.zip |
firmware: qcom: scm: Simplify set_cold/warm_boot_addr()
The qcom_scm_set_cold/warm_boot_addr() implementations have a lot of
functionality that is actually not used.
For example, set_warm_boot_addr() caches the last used entry address
and skips making the SCM call when the entry address is unchanged.
But there is actually just a single call of qcom_scm_set_warm_boot_addr()
in the whole kernel tree, which always configures the entry address
to cpu_resume_arm().
Simplify this by having a single qcom_scm_set_boot_addr() function
for both cold and warm boot address. This is totally sufficient for
the functionality supported in the mainline tree.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211201130505.257379-3-stephan@gerhold.net
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions