[PATCH RFC 22/27] drivers: firmware: PSCI: Export psci_has_ext_power_state()
Lina Iyer
lina.iyer at linaro.org
Tue Nov 17 14:37:46 PST 2015
Export psci_has_ext_power_state() to allow PSCI layers to determine and
pass the correct state id in the format supported.
Cc: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
Cc: Mark Rutland <mark.rutland at arm.com>
Signed-off-by: Lina Iyer <lina.iyer at linaro.org>
---
drivers/firmware/psci.c | 2 +-
include/linux/psci.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
index d24f35d..3fd42e4 100644
--- a/drivers/firmware/psci.c
+++ b/drivers/firmware/psci.c
@@ -83,7 +83,7 @@ static u32 psci_function_id[PSCI_FN_MAX];
static u32 psci_cpu_suspend_feature;
-static inline bool psci_has_ext_power_state(void)
+bool psci_has_ext_power_state(void)
{
return psci_cpu_suspend_feature &
PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK;
diff --git a/include/linux/psci.h b/include/linux/psci.h
index 12c4865..b9afbe2 100644
--- a/include/linux/psci.h
+++ b/include/linux/psci.h
@@ -23,6 +23,7 @@
bool psci_tos_resident_on(int cpu);
bool psci_power_state_loses_context(u32 state);
bool psci_power_state_is_valid(u32 state);
+bool psci_has_ext_power_state(void);
struct psci_operations {
int (*cpu_suspend)(u32 state, unsigned long entry_point);
--
2.1.4
More information about the linux-arm-kernel
mailing list