]> git.baikalelectronics.ru Git - arm-tf.git/commit
Save 'power_state' early in PSCI CPU_SUSPEND call
authorSoby Mathew <soby.mathew@arm.com>
Tue, 30 Sep 2014 10:19:51 +0000 (11:19 +0100)
committerSoby Mathew <soby.mathew@arm.com>
Fri, 23 Jan 2015 15:14:36 +0000 (15:14 +0000)
commit31244d74b350d49cfba6ad46d90dad2d5f2f364c
treed7f1fd7609927e15b4e4da50665355d04fc7a99a
parent78879b9a5e5c31b80830046007c9955a6fcf0dd1
Save 'power_state' early in PSCI CPU_SUSPEND call

This patch adds support to save the "power state" parameter before the
affinity level specific handlers are called in a CPU_SUSPEND call.
This avoids the need to pass the power_state as a parameter to the
handlers and Secure Payload Dispatcher (SPD) suspend spd_pm_ops.
The power_state arguments in the spd_pm_ops operations are now reserved
and must not be used. The SPD can query the relevant power_state fields
by using the psci_get_suspend_afflvl() & psci_get_suspend_stateid() APIs.

NOTE: THIS PATCH WILL BREAK THE SPD_PM_OPS INTERFACE. HENCE THE SECURE
PAYLOAD DISPATCHERS WILL NEED TO BE REWORKED TO USE THE NEW INTERFACE.

Change-Id: I1293d7dc8cf29cfa6a086a009eee41bcbf2f238e
bl32/tsp/tsp_main.c
include/bl31/services/psci.h
services/spd/opteed/opteed_pm.c
services/spd/tspd/tspd_pm.c
services/std_svc/psci/psci_afflvl_suspend.c
services/std_svc/psci/psci_main.c
services/std_svc/psci/psci_private.h