mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 18:41:22 +00:00
Merge "Assert if power level value greater then PSCI_INVALID_PWR_LVL" into integration
This commit is contained in:
commit
e65d3f45d7
1 changed files with 1 additions and 0 deletions
|
@ -193,6 +193,7 @@ static unsigned int get_power_on_target_pwrlvl(void)
|
||||||
pwrlvl = psci_get_suspend_pwrlvl();
|
pwrlvl = psci_get_suspend_pwrlvl();
|
||||||
if (pwrlvl == PSCI_INVALID_PWR_LVL)
|
if (pwrlvl == PSCI_INVALID_PWR_LVL)
|
||||||
pwrlvl = PLAT_MAX_PWR_LVL;
|
pwrlvl = PLAT_MAX_PWR_LVL;
|
||||||
|
assert(pwrlvl < PSCI_INVALID_PWR_LVL);
|
||||||
return pwrlvl;
|
return pwrlvl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue