summaryrefslogtreecommitdiff
path: root/lib/psci/psci_on.c
diff options
context:
space:
mode:
authorBoyan Karatotev <boyan.karatotev@arm.com>2023-05-17 12:20:09 +0100
committerJayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>2023-07-24 11:04:44 +0100
commite07e7392a1eeee1522b3feacb445c884402df2d7 (patch)
treecdc871f601976fbedaa1258ff9e3071c3fdb3374 /lib/psci/psci_on.c
parentece8f7d7347db517e141897b8bcb5e696fba97f9 (diff)
refactor(psci): extract cm_prepare_el3_exit_ns() to a common location
PSCI on and suspend wakeup both end with a cm_prepare_el3_exit_ns() call. Since they are equivalent to the caller, move the call to just after the *_finish calls to deduplicate it. Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I05c16dc6613aba357d20cc39cc43aab803d675e0
Diffstat (limited to 'lib/psci/psci_on.c')
-rw-r--r--lib/psci/psci_on.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/psci/psci_on.c b/lib/psci/psci_on.c
index 76eb50ce5..1f619aee0 100644
--- a/lib/psci/psci_on.c
+++ b/lib/psci/psci_on.c
@@ -225,11 +225,4 @@ void psci_cpu_on_finish(unsigned int cpu_idx, const psci_power_state_t *state_in
/* Populate the mpidr field within the cpu node array */
/* This needs to be done only once */
psci_cpu_pd_nodes[cpu_idx].mpidr = read_mpidr() & MPIDR_AFFINITY_MASK;
-
- /*
- * Generic management: Now we just need to retrieve the
- * information that we had stashed away during the cpu_on
- * call to set this cpu on its way.
- */
- cm_prepare_el3_exit_ns();
}