mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 05:54:08 +00:00
feat(psci): add psci_do_manage_extensions API
Adding a new API under PSCI library,for managing all the architectural features, required during power off or suspend cases. Change-Id: I1659560daa43b9344dd0cc0d9b311129b4e9a9c7 Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
This commit is contained in:
parent
70b9204e6f
commit
160e8434ba
2 changed files with 14 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017-2022, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -94,6 +94,7 @@ int psci_stop_other_cores(unsigned int wait_ms,
|
|||
bool psci_is_last_on_cpu_safe(void);
|
||||
bool psci_are_all_cpus_on_safe(void);
|
||||
void psci_pwrdown_cpu(unsigned int power_level);
|
||||
void psci_do_manage_extensions(void);
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
|
|
|
@ -1164,6 +1164,8 @@ int psci_secondaries_brought_up(void)
|
|||
******************************************************************************/
|
||||
void psci_pwrdown_cpu(unsigned int power_level)
|
||||
{
|
||||
psci_do_manage_extensions();
|
||||
|
||||
#if HW_ASSISTED_COHERENCY
|
||||
/*
|
||||
* With hardware-assisted coherency, the CPU drivers only initiate the
|
||||
|
@ -1283,3 +1285,13 @@ bool psci_are_all_cpus_on_safe(void)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* This function performs architectural feature specific management.
|
||||
* It ensures the architectural features are disabled during cpu
|
||||
* power off/suspend operations.
|
||||
******************************************************************************/
|
||||
void psci_do_manage_extensions(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue