aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/bakery_lock.h
diff options
context:
space:
mode:
authorDan Handley <dan.handley@arm.com>2014-04-09 13:14:54 +0100
committerDan Handley <dan.handley@arm.com>2014-05-06 13:57:48 +0100
commit97043ac98e13a726dbf8b3b41654dca759e3da2c (patch)
tree18133148dea88d9a2313113111b24b56e8130505 /include/lib/bakery_lock.h
parentfb037bfb7cbf7b404c069b4ebac5a10059d948b1 (diff)
downloadplatform_external_arm-trusted-firmware-97043ac98e13a726dbf8b3b41654dca759e3da2c.tar.gz
platform_external_arm-trusted-firmware-97043ac98e13a726dbf8b3b41654dca759e3da2c.tar.bz2
platform_external_arm-trusted-firmware-97043ac98e13a726dbf8b3b41654dca759e3da2c.zip
Reduce deep nesting of header files
Reduce the number of header files included from other header files as much as possible without splitting the files. Use forward declarations where possible. This allows removal of some unnecessary "#ifndef __ASSEMBLY__" statements. Also, review the .c and .S files for which header files really need including and reorder the #include statements alphabetically. Fixes ARM-software/tf-issues#31 Change-Id: Iec92fb976334c77453e010b60bcf56f3be72bd3e
Diffstat (limited to 'include/lib/bakery_lock.h')
-rw-r--r--include/lib/bakery_lock.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/lib/bakery_lock.h b/include/lib/bakery_lock.h
index 0def06748..e6744a51e 100644
--- a/include/lib/bakery_lock.h
+++ b/include/lib/bakery_lock.h
@@ -35,7 +35,6 @@
#define BAKERY_LOCK_MAX_CPUS PLATFORM_CORE_COUNT
-#ifndef __ASSEMBLY__
typedef struct bakery_lock {
int owner;
volatile char entering[BAKERY_LOCK_MAX_CPUS];
@@ -48,6 +47,5 @@ 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);
-#endif /*__ASSEMBLY__*/
#endif /* __BAKERY_LOCK_H__ */