OSDN Git Service

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)
commitc8cc42737788537ebef810ee22400f757e1819ca
tree3b047642407cddf7937da829df996252313dc6d4
parentff3010e6fcdb5f7e6999c6026ab7fcf835d54c5a
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