@@ -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;
@@ -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);
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@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Lina Iyer <lina.iyer@linaro.org> --- drivers/firmware/psci.c | 2 +- include/linux/psci.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)