summaryrefslogtreecommitdiff
path: root/services/std_svc/psci/psci_common.c
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2015-01-07 12:58:37 +0000
committerdanh-arm <dan.handley@arm.com>2015-01-07 12:58:37 +0000
commit02b5678ca5d15b36d6feea1c0b7d26f6a07274fd (patch)
tree307db87ddc1e0be24d8d4057256e5dd08759879d /services/std_svc/psci/psci_common.c
parent2060f0c0181fec2afd0d28f08370e080e27824f2 (diff)
parent264999fc601e5b72e31aeb66101b57e409e2f68b (diff)
Merge pull request #227 from soby-mathew/sm/afflvl_fix
Fix CPU_SUSPEND when invoked with affinity level higher than get_max_aff...
Diffstat (limited to 'services/std_svc/psci/psci_common.c')
-rw-r--r--services/std_svc/psci/psci_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/std_svc/psci/psci_common.c b/services/std_svc/psci/psci_common.c
index 2267ad08..155f842e 100644
--- a/services/std_svc/psci/psci_common.c
+++ b/services/std_svc/psci/psci_common.c
@@ -201,7 +201,7 @@ unsigned long mpidr_set_aff_inst(unsigned long mpidr,
int psci_check_afflvl_range(int start_afflvl, int end_afflvl)
{
/* Sanity check the parameters passed */
- if (end_afflvl > MPIDR_MAX_AFFLVL)
+ if (end_afflvl > get_max_afflvl())
return PSCI_E_INVALID_PARAMS;
if (start_afflvl < MPIDR_AFFLVL0)