aboutsummaryrefslogtreecommitdiff
path: root/include/lib/bakery_lock.h
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2015-02-20 16:04:17 +0000
committerSoby Mathew <soby.mathew@arm.com>2015-03-27 10:20:32 +0000
commit548579f56eb95d3d4ba1484a8922a9f6e0a03c73 (patch)
treef3aeac2b4605b0f8ee56a6d12f0ca6c4e4d5b0a6 /include/lib/bakery_lock.h
parent1c9573a157f0d6d76ded5e651bb3f0b9f3a3c9ec (diff)
downloadarm-trusted-firmware-548579f56eb95d3d4ba1484a8922a9f6e0a03c73.tar.gz
Remove the `owner` field in bakery_lock_t data structure
This patch removes the `owner` field in bakery_lock_t structure which is the data structure used in the bakery lock implementation that uses coherent memory. The assertions to protect against recursive lock acquisition were based on the 'owner' field. They are now done based on the bakery lock ticket number. These assertions are also added to the bakery lock implementation that uses normal memory as well. Change-Id: If4850a00dffd3977e218c0f0a8d145808f36b470
Diffstat (limited to 'include/lib/bakery_lock.h')
-rw-r--r--include/lib/bakery_lock.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/lib/bakery_lock.h b/include/lib/bakery_lock.h
index eaefecd9e..2e1afa21f 100644
--- a/include/lib/bakery_lock.h
+++ b/include/lib/bakery_lock.h
@@ -58,7 +58,6 @@
#if USE_COHERENT_MEM
typedef struct bakery_lock {
- int owner;
/*
* The lock_data is a bit-field of 2 members:
* Bit[0] : choosing. This field is set when the CPU is
@@ -68,8 +67,6 @@ typedef struct bakery_lock {
volatile uint16_t lock_data[BAKERY_LOCK_MAX_CPUS];
} bakery_lock_t;
-#define NO_OWNER (-1)
-
void bakery_lock_init(bakery_lock_t *bakery);
void bakery_lock_get(bakery_lock_t *bakery);
void bakery_lock_release(bakery_lock_t *bakery);