mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00
Merge "fix(psci): check if a core is the last one in a requested power level" into integration
This commit is contained in:
commit
b478432d81
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2015-2025, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -56,6 +56,10 @@ int arm_validate_power_state(unsigned int power_state,
|
|||
if (psci_get_pstate_id(power_state) != 0U)
|
||||
return PSCI_E_INVALID_PARAMS;
|
||||
|
||||
#if PSCI_OS_INIT_MODE
|
||||
req_state->last_at_pwrlvl = psci_get_pstate_pwrlvl(power_state);
|
||||
#endif /* __PSCI_OS_INIT_MODE__ */
|
||||
|
||||
return PSCI_E_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue