mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-18 21:11:11 +02:00
"psci_is_last_on_cpu" and "psci_is_last_on_cpu_safe" modules perform mostly similar functionalities, verifying whether the current CPU is the only active core and other cores have been turned off. However, psci_is_last_on_cpu_safe function differs from the other with: 1. Safe API locks the power domain This patch removes the section duplicating the functionality and ensures that "psci_is_last_on_cpu api",is reused in "psci_is_last_on_cpu_safe" procedure. Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> Change-Id: Ie372519e423898d7afa5427cdd77a7f9d3369587