]> 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)
commit8ad16d5487601d9ce66955c391652fd309be7c5e
treeab053bd4672bc20223b1ca33e42378d9f9a41a96
parent939d39e9c16ae4ab91b53d77cfd39612ed51ea87
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