summaryrefslogtreecommitdiff
path: root/include/linux/psci.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-09-01 16:28:58 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-09-22 17:50:32 +0200
commit10942019040c5557556ec22aae0f771b2a1a1a6d (patch)
treed394a036ffa70ab44cd52f23eba021738fa5f1b5 /include/linux/psci.h
parent653f68b6ecd15cf147817bb01c2b7d02f4bffc8e (diff)
firmware: psci: Extend psci_set_osi_mode() to allow reset to PC mode
The current user (cpuidle-psci) of psci_set_osi_mode() only needs to enable the PSCI OSI mode. Although, as subsequent changes shows, there is a need to be able to reset back into the PSCI PC mode. Therefore, let's extend psci_set_osi_mode() to take a bool as in-parameter, to let the user indicate whether to enable OSI or to switch back to PC mode. Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/psci.h')
-rw-r--r--include/linux/psci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/psci.h b/include/linux/psci.h
index 14ad9b9ebcd6..2a1bfb890e58 100644
--- a/include/linux/psci.h
+++ b/include/linux/psci.h
@@ -18,7 +18,7 @@ bool psci_tos_resident_on(int cpu);
int psci_cpu_suspend_enter(u32 state);
bool psci_power_state_is_valid(u32 state);
-int psci_set_osi_mode(void);
+int psci_set_osi_mode(bool enable);
bool psci_has_osi_support(void);
struct psci_operations {