Browse Source

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>
pull/1999/merge
Jayanth Dodderi Chidanand 1 year ago
parent
commit
160e8434ba
  1. 3
      include/lib/psci/psci_lib.h
  2. 12
      lib/psci/psci_common.c

3
include/lib/psci/psci_lib.h

@ -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__ */

12
lib/psci/psci_common.c

@ -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…
Cancel
Save