]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31ab26193dbbdf9dac97231429732ad1d8d185a6
treeab053bd4672bc20223b1ca33e42378d9f9a41a96
parent8406c341855e435aec545ae1ac7ca92d034d9254
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