commit | a1d5ac6a5aa5d9d18a481de20d272f64a71391f7 | [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 | 02d36a92fc193869547b9d9af00f623974879fdd [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