mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 06:19:56 +00:00
refactor(psci): move psci_do_pwrdown_sequence() out of private header
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>
This commit is contained in:
parent
158ed580bd
commit
65bbb9358b
5 changed files with 4 additions and 4 deletions
|
@ -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__ */
|
||||
|
||||
|
|
|
@ -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
|
||||
/*
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue