forked from ARM-software/arm-trusted-firmware
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSCI: add core_power_down_wfi() hook for late power-off
Without a management processor to pull a core's "plug" remotely, we need to turn our own power off at some point. Doing this in the middle of the PSCI handling code during the platform-specific CPU_OFF callback is a bad idea, as some locks are held at this point. As the core stops executing instructions immediately when power gated, we never get a chance to release those locks. In the style of mainline ATF, introduce a callback function to do some late platform-specific power-off work. This callback is called as the last action in the process, just before sending the core to WFI. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters