aboutsummaryrefslogtreecommitdiff
path: root/lib/sync/locks/bakery/bakery_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sync/locks/bakery/bakery_lock.c')
-rw-r--r--lib/sync/locks/bakery/bakery_lock.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/sync/locks/bakery/bakery_lock.c b/lib/sync/locks/bakery/bakery_lock.c
index 9641248..444b6a1 100644
--- a/lib/sync/locks/bakery/bakery_lock.c
+++ b/lib/sync/locks/bakery/bakery_lock.c
@@ -88,17 +88,8 @@ void bakery_lock_release(unsigned long mpidr, bakery_lock * bakery)
unsigned int entry = platform_get_core_pos(mpidr);
assert_bakery_entry_valid(entry, bakery);
- assert(bakery_lock_held(entry, bakery));
+ assert(bakery->owner == entry);
bakery->owner = NO_OWNER;
bakery->number[entry] = 0;
}
-
-int bakery_lock_held(unsigned long mpidr, const bakery_lock * bakery)
-{
- unsigned int entry = platform_get_core_pos(mpidr);
-
- assert_bakery_entry_valid(entry, bakery);
-
- return bakery->owner == entry;
-}