Provide cm_get/set_context() for current CPU
authorAndrew Thoelke <andrew.thoelke@arm.com>
Wed, 14 May 2014 16:09:32 +0000 (17:09 +0100)
committerAndrew Thoelke <andrew.thoelke@arm.com>
Wed, 11 Jun 2014 11:10:16 +0000 (12:10 +0100)
commit08ab89d324e8d784f0d35b639b7c27b4ff3e5959
tree72e3f55c277d2db0963ac8d27508d1e937d13dd0
parent977fbcd4e0842e590a961d6f40c14653caa9301a
Provide cm_get/set_context() for current CPU

All callers of cm_get_context() pass the calling CPU MPIDR to the
function. Providing a specialised version for the current
CPU results in a reduction in code size and better readability.

The current function has been renamed to cm_get_context_by_mpidr()
and the existing name is now used for the current-CPU version.

The same treatment has been done to cm_set_context(), although
only both forms are used at present in the PSCI and TSPD code.

Change-Id: I91cb0c2f7bfcb950a045dbd9ff7595751c0c0ffb
bl31/bl31_main.c
bl31/context_mgmt.c
include/bl31/context_mgmt.h
services/spd/tspd/tspd_common.c
services/spd/tspd/tspd_main.c
services/std_svc/psci/psci_afflvl_on.c
services/std_svc/psci/psci_afflvl_suspend.c
services/std_svc/psci/psci_common.c
services/std_svc/psci/psci_setup.c