PSCI: Check early for invalid CPU state during CPU ON
authorSoby Mathew <soby.mathew@arm.com>
Mon, 12 Jan 2015 13:01:31 +0000 (13:01 +0000)
committerSoby Mathew <soby.mathew@arm.com>
Fri, 23 Jan 2015 15:14:36 +0000 (15:14 +0000)
commit2f5aadedc4b722841155f0ff6630e220dac3f30b
tree586d74b6db7fa2bc386e75e1967ea1fba937df54
parente146f4cc6c93ab5efe93f73c0dd53bce8c99555f
PSCI: Check early for invalid CPU state during CPU ON

This patch moves the check for valid CPU state during
PSCI_CPU_ON to before the non secure entry point is programmed
so as to enable it to return early on error.

Change-Id: I1b1a21be421e2b2a6e33db236e91dee8688efffa
services/std_svc/psci/psci_afflvl_on.c