aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/bakery_lock.h
diff options
context:
space:
mode:
authorAndrew Thoelke <andrew.thoelke@arm.com>2014-06-09 12:54:15 +0100
committerAndrew Thoelke <andrew.thoelke@arm.com>2014-06-23 23:16:39 +0100
commit634ec6c23b4037ec6efc2a594fd6b666339171e9 (patch)
treee3f54acbd5f76b3467e3de6f457f3d4f3813102b /include/lib/bakery_lock.h
parente869310f67344cd1f2b531cff38fa8cb4d319d58 (diff)
downloadplatform_external_arm-trusted-firmware-634ec6c23b4037ec6efc2a594fd6b666339171e9.tar.gz
platform_external_arm-trusted-firmware-634ec6c23b4037ec6efc2a594fd6b666339171e9.tar.bz2
platform_external_arm-trusted-firmware-634ec6c23b4037ec6efc2a594fd6b666339171e9.zip
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
Diffstat (limited to 'include/lib/bakery_lock.h')
-rw-r--r--include/lib/bakery_lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/lib/bakery_lock.h b/include/lib/bakery_lock.h
index 037fa7d18..95634cf54 100644
--- a/include/lib/bakery_lock.h
+++ b/include/lib/bakery_lock.h
@@ -44,8 +44,8 @@ typedef struct bakery_lock {
#define NO_OWNER (-1)
void bakery_lock_init(bakery_lock_t *bakery);
-void bakery_lock_get(unsigned long mpidr, bakery_lock_t *bakery);
-void bakery_lock_release(unsigned long mpidr, bakery_lock_t *bakery);
-int bakery_lock_try(unsigned long mpidr, bakery_lock_t *bakery);
+void bakery_lock_get(bakery_lock_t *bakery);
+void bakery_lock_release(bakery_lock_t *bakery);
+int bakery_lock_try(bakery_lock_t *bakery);
#endif /* __BAKERY_LOCK_H__ */