diff options
Diffstat (limited to 'include/lib/bakery_lock.h')
-rw-r--r-- | include/lib/bakery_lock.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/lib/bakery_lock.h b/include/lib/bakery_lock.h index 6e6e96635..0def06748 100644 --- a/include/lib/bakery_lock.h +++ b/include/lib/bakery_lock.h @@ -36,18 +36,18 @@ #define BAKERY_LOCK_MAX_CPUS PLATFORM_CORE_COUNT #ifndef __ASSEMBLY__ -typedef struct { +typedef struct bakery_lock { int owner; volatile char entering[BAKERY_LOCK_MAX_CPUS]; volatile unsigned number[BAKERY_LOCK_MAX_CPUS]; -} bakery_lock; +} bakery_lock_t; #define NO_OWNER (-1) -void bakery_lock_init(bakery_lock *bakery); -void bakery_lock_get(unsigned long mpidr, bakery_lock *bakery); -void bakery_lock_release(unsigned long mpidr, bakery_lock *bakery); -int bakery_lock_try(unsigned long mpidr, bakery_lock *bakery); +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__ */ |