commit | e7e2afde35d51ad8be56217841d1841a4499b55f | [log] [tgz] |
---|---|---|
author | Samuel Holland <samuel@sholland.org> | Wed Apr 28 17:52:02 2021 -0500 |
committer | Manish Pandey <manish.pandey2@arm.com> | Fri Oct 15 14:13:54 2021 +0200 |
tree | e59f1b6d0834f6e25d800a5736f3e31da28c2de2 | |
parent | 92ffd7ab46976c601e48f84ecb2e906c87fe7b0f [diff] |
feat(psci): require validate_power_state to expose CPU_SUSPEND psci_cpu_suspend unconditionally calls psci_validate_power_state, which asserts that the platform implements ops->validate_power_state. To avoid a failure at runtime, do not expose CPU_SUSPEND unless that callback is implemented. This also allows a platform to provide SYSTEM_SUSPEND without providing CPU_SUSPEND. Signed-off-by: Samuel Holland <samuel@sholland.org> Change-Id: I5dafb7845f482ab3af03a9de562def41dd70189e