]> git.baikalelectronics.ru Git - arm-tf.git/commit
Remove calling CPU mpidr from bakery lock API
authorAndrew Thoelke <andrew.thoelke@arm.com>
Mon, 9 Jun 2014 11:54:15 +0000 (12:54 +0100)
committerAndrew Thoelke <andrew.thoelke@arm.com>
Mon, 23 Jun 2014 22:16:39 +0000 (23:16 +0100)
commit634ec6c23b4037ec6efc2a594fd6b666339171e9
treee3f54acbd5f76b3467e3de6f457f3d4f3813102b
parente869310f67344cd1f2b531cff38fa8cb4d319d58
Remove calling CPU mpidr from bakery lock API

The bakery lock code currently expects the calling code to pass
the MPIDR_EL1 of the current CPU.

This is not always done correctly. Also the change to provide
inline access to system registers makes it more efficient for the
bakery lock code to obtain the MPIDR_EL1 directly.

This change removes the mpidr parameter from the bakery lock
interface, and results in a code reduction of 160 bytes for the
ARM FVP port.

Fixes ARM-software/tf-issues#213

Change-Id: I7ec7bd117bcc9794a0d948990fcf3336a367d543
include/lib/bakery_lock.h
lib/locks/bakery/bakery_lock.c
plat/fvp/drivers/pwrc/fvp_pwrc.c
services/std_svc/psci/psci_common.c