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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -18,6 +18,8 @@ bool psci_tos_resident_on(int cpu); · 17 unmodified lines | ||
| 18 | 18 | |
| 19 | 19 | int psci_cpu_suspend_enter(u32 state); |
| 20 | 20 | bool psci_power_state_is_valid(u32 state); |
| 21 | +int psci_set_osi_mode(void); | |
| 22 | +bool psci_has_osi_support(void); | |
| 21 | 23 | |
| 22 | 24 | enum smccc_version { |
| 23 | 25 | SMCCC_VERSION_1_0, |