]> git.baikalelectronics.ru Git - arm-tf.git/commit
Add PSCI service specific per-CPU data
authorAchin Gupta <achin.gupta@arm.com>
Fri, 25 Jul 2014 13:52:47 +0000 (14:52 +0100)
committerSoby Mathew <soby.mathew@arm.com>
Tue, 19 Aug 2014 13:29:23 +0000 (14:29 +0100)
commit776b68ae59d10f956232aa208480cbd85f308c88
tree245631238e36a53542e3bfd42d5ac54024deb31e
parent04fafcee2b08948d2d366c448bec059a90d224f4
Add PSCI service specific per-CPU data

This patch adds a structure defined by the PSCI service to the per-CPU data
array. The structure is used to save the 'power_state' parameter specified
during a 'cpu_suspend' call on the current CPU. This parameter was being saved
in the cpu node in the PSCI topology tree earlier.

The existing API to return the state id specified during a PSCI CPU_SUSPEND call
i.e. psci_get_suspend_stateid(mpidr) has been renamed to
psci_get_suspend_stateid_by_mpidr(mpidr). The new psci_get_suspend_stateid() API
returns the state id of the current cpu.

The psci_get_suspend_afflvl() API has been changed to return the target affinity
level of the current CPU. This was specified using the 'mpidr' parameter in the
old implementation.

The behaviour of the get_power_on_target_afflvl() has been tweaked such that
traversal of the PSCI topology tree to locate the affinity instance node for the
current CPU is done only in the debug build as it is an expensive operation.

Change-Id: Iaad49db75abda471f6a82d697ee6e0df554c4caf
include/bl31/cpu_data.h
include/bl31/services/psci.h
services/std_svc/psci/psci_afflvl_suspend.c
services/std_svc/psci/psci_common.c
services/std_svc/psci/psci_entry.S
services/std_svc/psci/psci_private.h
services/std_svc/psci/psci_setup.c