Return success if an interrupt is seen during PSCI CPU_SUSPEND
authorSoby Mathew <soby.mathew@arm.com>
Tue, 6 Jan 2015 21:36:55 +0000 (21:36 +0000)
committerSoby Mathew <soby.mathew@arm.com>
Fri, 23 Jan 2015 18:36:15 +0000 (18:36 +0000)
commit22f08973f35d3413148168a0a622d7dcd2c2630b
treee924ed472c64caeea1c5ecd696230f2bb71e93fb
parent539dcedb7d83804a4237c4385b2cb15f0b7ee0b5
Return success if an interrupt is seen during PSCI CPU_SUSPEND

This patch adds support to return SUCCESS if a pending interrupt is
detected during a CPU_SUSPEND call to a power down state. The check
is performed as late as possible without losing the ability to return
to the caller. This reduces the overhead incurred by a CPU in
undergoing a complete power cycle when a wakeup interrupt is already
pending.

Fixes ARM-Software/tf-issues#102

Change-Id: I1aff04a74b704a2f529734428030d1d10750fd4b
include/lib/aarch64/arch_helpers.h
services/std_svc/psci/psci_afflvl_off.c
services/std_svc/psci/psci_afflvl_suspend.c
services/std_svc/psci/psci_main.c