diff options
author | Achin Gupta <achin.gupta@arm.com> | 2013-12-05 15:10:48 +0000 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-01-20 18:45:04 +0000 |
commit | a45e39738bcfb8ad49f581c92c747e159aa23892 (patch) | |
tree | 9b52dcc3be7d54ab7ed72ec4c194d6fd7fc2f0c4 /common/psci/psci_entry.S | |
parent | a59caa4cbd03c394e7a5bf098ddd9db457b35aae (diff) |
psci: preserve target affinity level during suspend
This patch adds support to save and restore the target affinity level
specified during a cpu_suspend psci call. This ensures that we
traverse only through the affinity levels that we originally intended
to after resuming from suspend.
Change-Id: I0900ae49a50b496da137cfec8f158da0397ec56c
Diffstat (limited to 'common/psci/psci_entry.S')
-rw-r--r-- | common/psci/psci_entry.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/psci/psci_entry.S b/common/psci/psci_entry.S index 65325560..a6a1a6f0 100644 --- a/common/psci/psci_entry.S +++ b/common/psci/psci_entry.S @@ -72,7 +72,10 @@ psci_aff_common_finish_entry: * level 0. * --------------------------------------------- */ - bl get_max_afflvl + mov x0, x19 + bl get_power_on_target_afflvl + cmp x0, xzr + b.lt _panic mov x3, x23 mov x2, x0 mov x0, x19 |