psci: Split functions to v0.1 and v0.2+ variants
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:00 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 08:44:23 +0000 (08:44 +0000)
commit0bc7474fb7673422b134e88feb49cde54b22bb75
treeab053bd4672bc20223b1ca33e42378d9f9a41a96
parente6dd9d89a64e30b25339d0dbe5c5aa589db8d530
psci: Split functions to v0.1 and v0.2+ variants

Refactor implementation of v0.1+ functions (CPU_SUSPEND, CPU_OFF,
CPU_ON, MIGRATE) to have two functions psci_0_1_foo / psci_0_2_foo that
select the function ID and call a common helper __psci_foo.

This is a small cleanup so that the function ID array is only used for
v0.1 configurations.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20201202184122.26046-5-dbrazdil@google.com
drivers/firmware/psci/psci.c