arm-trusted-firmware/lib/psci
Jayanth Dodderi Chidanand b41b082464 refactor(psci): unify psci_is_last_on_cpu and psci_is_last_on_cpu_safe
"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
2022-09-29 16:37:34 +01:00
..
aarch32 Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
aarch64 Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_common.c refactor(psci): unify psci_is_last_on_cpu and psci_is_last_on_cpu_safe 2022-09-29 16:37:34 +01:00
psci_lib.mk mem_protect: Add mem_protect API 2017-09-25 13:32:20 +01:00
psci_main.c refactor(psci): unify psci_is_last_on_cpu and psci_is_last_on_cpu_safe 2022-09-29 16:37:34 +01:00
psci_mem_protect.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_off.c refactor(psci): move psci_do_pwrdown_sequence() out of private header 2022-09-15 18:09:56 +05:30
psci_on.c refactor(context mgmt): add cm_prepare_el3_exit_ns function 2022-04-12 17:42:11 +02:00
psci_private.h refactor(psci): unify psci_is_last_on_cpu and psci_is_last_on_cpu_safe 2022-09-29 16:37:34 +01:00
psci_setup.c feat(psci): require validate_power_state to expose CPU_SUSPEND 2021-10-15 14:13:54 +02:00
psci_stat.c Unify type of "cpu_idx" across PSCI module. 2020-01-10 17:11:51 +00:00
psci_suspend.c refactor(psci): move psci_do_pwrdown_sequence() out of private header 2022-09-15 18:09:56 +05:30
psci_system_off.c Don't return error information from console_flush 2020-10-09 10:21:50 -05:00