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
1 parent 539dced commit 22f08973f35d3413148168a0a622d7dcd2c2630b
@Soby Mathew Soby Mathew authored on 6 Jan 2015
Showing 4 changed files
View
include/lib/aarch64/arch_helpers.h
View
services/std_svc/psci/psci_afflvl_off.c
View
services/std_svc/psci/psci_afflvl_suspend.c
View
services/std_svc/psci/psci_main.c