]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
refactor(psci): move psci_do_pwrdown_sequence() out of private header
authorPranav Madhu <pranav.madhu@arm.com>
Fri, 22 Jul 2022 17:41:16 +0000 (23:11 +0530)
committerPranav Madhu <pranav.madhu@arm.com>
Thu, 15 Sep 2022 12:39:56 +0000 (18:09 +0530)
Move the psci_do_pwrdown_sequence() function declaration from PSCI
private header to common header. The psci_do_pwrdown_sequence is
required to support warm reset, where each CPU need to execute the
powerdown sequence.

Change-Id: I298e7a120be814941fa91c0b001002a080e56263
Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
include/lib/psci/psci_lib.h
lib/psci/psci_common.c
lib/psci/psci_off.c
lib/psci/psci_private.h
lib/psci/psci_suspend.c

index 43e2f9638d79d51d562ae28ce5528045165c1bde..3edc50b6cec122a680d0deeb5e09d7cfec0943fb 100644 (file)
@@ -92,6 +92,7 @@ void psci_prepare_next_non_secure_ctx(
 int psci_stop_other_cores(unsigned int wait_ms,
                          void (*stop_func)(u_register_t mpidr));
 bool psci_is_last_on_cpu_safe(void);
+void psci_pwrdown_cpu(unsigned int power_level);
 
 #endif /* __ASSEMBLER__ */
 
index b60ddbb8362a571307b9c9f2b016fdfcec718039..efcfed86ce842e5937a8bc05a8d75f849436c402 100644 (file)
@@ -954,7 +954,7 @@ int psci_secondaries_brought_up(void)
  * Initiate power down sequence, by calling power down operations registered for
  * this CPU.
  ******************************************************************************/
-void psci_do_pwrdown_sequence(unsigned int power_level)
+void psci_pwrdown_cpu(unsigned int power_level)
 {
 #if HW_ASSISTED_COHERENCY
        /*
index 54470457a8a82d523f4cebb70d690212c7135040..637adb97e1a2721353c88064d6bfad89f3496924 100644 (file)
@@ -109,7 +109,7 @@ int psci_do_cpu_off(unsigned int end_pwrlvl)
        /*
         * Arch. management. Initiate power down sequence.
         */
-       psci_do_pwrdown_sequence(psci_find_max_off_lvl(&state_info));
+       psci_pwrdown_cpu(psci_find_max_off_lvl(&state_info));
 
 #if ENABLE_RUNTIME_INSTRUMENTATION
        PMF_CAPTURE_TIMESTAMP(rt_instr_svc,
index 61bd9663c262f4dfc354f282bbcedd94feb2cf3f..caade9c59b03622fa2715c2f9cd56783d88e0a2a 100644 (file)
@@ -296,7 +296,6 @@ void psci_set_pwr_domains_to_run(unsigned int end_pwrlvl);
 void psci_print_power_domain_map(void);
 unsigned int psci_is_last_on_cpu(void);
 int psci_spd_migrate_info(u_register_t *mpidr);
-void psci_do_pwrdown_sequence(unsigned int power_level);
 
 /*
  * CPU power down is directly called only when HW_ASSISTED_COHERENCY is
index ffe3a911fd516c296e120e02a02b6ee9912676ab..f71994d71c07aa997718b19016a521aaa07356b1 100644 (file)
@@ -124,7 +124,7 @@ static void psci_suspend_to_pwrdown_start(unsigned int end_pwrlvl,
         * TODO : Introduce a mechanism to query the cache level to flush
         * and the cpu-ops power down to perform from the platform.
         */
-       psci_do_pwrdown_sequence(max_off_lvl);
+       psci_pwrdown_cpu(max_off_lvl);
 
 #if ENABLE_RUNTIME_INSTRUMENTATION
        PMF_CAPTURE_TIMESTAMP(rt_instr_svc,