]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: psci: kill psci_power_state
authorMark Rutland <mark.rutland@arm.com>
Thu, 30 Apr 2015 16:59:03 +0000 (17:59 +0100)
committerMark Rutland <mark.rutland@arm.com>
Wed, 27 May 2015 12:22:18 +0000 (13:22 +0100)
commitcb04bebc18ef16806d2d2db27b443bfc81a7a169
tree3b047642407cddf7937da829df996252313dc6d4
parent9119a1307ebbec64db88839724b2200b9edaeec0
arm64: psci: kill psci_power_state

A PSCI 1.0 implementation may choose to use the new extended StateID
format, the presence of which may be queried via the PSCI_FEATURES call.
The layout of this new StateID format is incompatible with the existing
format, and so to handle both we must abstract attempts to parse the
fields.

In preparation for PSCI 1.0 support, this patch introduces
psci_power_state_loses_context and psci_power_state_is_valid functions
to query information from a PSCI power state, which is no longer
decomposed (and hence the pack/unpack functions are removed). As it is
no longer decomposed, it is now passed round as an opaque u32 token.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/psci.c