summaryrefslogtreecommitdiff
path: root/services/std_svc/psci/psci_main.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_main.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_main.c')
-rw-r--r--services/std_svc/psci/psci_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/std_svc/psci/psci_main.c b/services/std_svc/psci/psci_main.c
index 0ffa5d73..2e700e8a 100644
--- a/services/std_svc/psci/psci_main.c
+++ b/services/std_svc/psci/psci_main.c
@@ -86,7 +86,7 @@ int psci_cpu_suspend(unsigned int power_state,
/* Sanity check the requested state */
target_afflvl = psci_get_pstate_afflvl(power_state);
- if (target_afflvl > MPIDR_MAX_AFFLVL)
+ if (target_afflvl > get_max_afflvl())
return PSCI_E_INVALID_PARAMS;
/* Determine the 'state type' in the 'power_state' parameter */