summaryrefslogtreecommitdiffstats
path: root/include/linux/psci.h
diff options
context:
space:
mode:
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2015-05-26 16:49:01 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2015-10-02 14:35:16 +0100
commit068654c200cc32966ce7906ca0bd096b9b97e988 (patch)
treed0b7c97952230aa8897b066f37fcf41a9d57be54 /include/linux/psci.h
parent2217d7c68e5caf50ec86b8c75c76bf06eb4b2c45 (diff)
downloadblackbird-op-linux-068654c200cc32966ce7906ca0bd096b9b97e988.tar.gz
blackbird-op-linux-068654c200cc32966ce7906ca0bd096b9b97e988.zip
drivers: firmware: psci: move power_state handling to generic code
Functions implemented on arm64 to check if a power_state parameter is valid and if the power_state implies context loss are not arm64 specific and should be moved to generic code so that they can be reused on arm systems too. This patch moves the functions handling the power_state parameter to generic PSCI firmware layer code. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Will Deacon <will.deacon@arm.com> Acked-by: Sudeep Holla <sudeep.holla@arm.com> Tested-by: Jisheng Zhang <jszhang@marvell.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'include/linux/psci.h')
-rw-r--r--include/linux/psci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/psci.h b/include/linux/psci.h
index a682fcc91c33..12c4865457ad 100644
--- a/include/linux/psci.h
+++ b/include/linux/psci.h
@@ -21,6 +21,8 @@
#define PSCI_POWER_STATE_TYPE_POWER_DOWN 1
bool psci_tos_resident_on(int cpu);
+bool psci_power_state_loses_context(u32 state);
+bool psci_power_state_is_valid(u32 state);
struct psci_operations {
int (*cpu_suspend)(u32 state, unsigned long entry_point);
OpenPOWER on IntegriCloud