History

firmware: psci: Export functions to manage the OSI mode

To allow subsequent changes to implement support for OSI mode through the cpuidle-psci driver, export the existing psci_has_osi_support(). Export also a new function, psci_set_osi_mode(), that allows its caller to enable the OS-initiated CPU-suspend mode in the PSCI FW. To deal with backwards compatibility for a kernel started through a kexec call, default to set the CPU-suspend mode to the Platform Coordinated mode during boot.

Ulf Hansson committed 7 years ago

Commit 49fdcd71 parent a3f048b2 files · +18 −2Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/psci.h+2−0
@@ -18,6 +18,8 @@ bool psci_tos_resident_on(int cpu); · 17 unmodified lines
18 18
19int psci_cpu_suspend_enter(u32 state);19int psci_cpu_suspend_enter(u32 state);
20bool psci_power_state_is_valid(u32 state);20bool psci_power_state_is_valid(u32 state);
21int psci_set_osi_mode(void);
22bool psci_has_osi_support(void);
21 23
22enum smccc_version {24enum smccc_version {
23 SMCCC_VERSION_1_0,25 SMCCC_VERSION_1_0,