firmware: qcom: scm: Drop cpumask parameter from set_boot_addr()
authorStephan Gerhold <stephan@gerhold.net>
Wed, 1 Dec 2021 13:05:04 +0000 (14:05 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 4 Feb 2022 03:54:48 +0000 (21:54 -0600)
commit52beb1fc237d67cdc64277dc90047767a6fc52d7
treec27125a7ef6b0277acba05e6ab94ac127a06e23a
parent7734c4b507cefbcf2f7a2a806e79c43e52528c5f
firmware: qcom: scm: Drop cpumask parameter from set_boot_addr()

qcom_scm_set_cold/warm_boot_addr() currently take a cpumask parameter,
but it's not very useful because at the end we always set the same entry
address for all CPUs. This also allows speeding up probe of
cpuidle-qcom-spm a bit because only one SCM call needs to be made to
the TrustZone firmware, instead of one per CPU.

The main reason for this change is that it allows implementing the
"multi-cluster" variant of the set_boot_addr() call more easily
without having to rely on functions that break in certain build
configurations or that are not exported to modules.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211201130505.257379-4-stephan@gerhold.net
arch/arm/mach-qcom/platsmp.c
drivers/cpuidle/cpuidle-qcom-spm.c
drivers/firmware/qcom_scm.c
include/linux/qcom_scm.h