Fix assert in bakery_lock_release()
bakery_lock_release() expects an mpidr as the first argument however
bakery_lock_release() is calling it with the 'entry' argument it has
calculated. Rather than fixing this to pass the mpidr value it would be
much more efficient to just replace the call with

   assert(bakery->owner == entry)

As this leaves no remaining users of bakery_lock_held(), we might as
well delete it.

Fixes ARM-software/tf-issues#27

Signed-off-by: Jon Medhurst <tixy@linaro.org>
1 parent b238849 commit a4d9f26b009647db14fbf24479245227e712d35d
@Jon Medhurst Jon Medhurst authored on 6 Feb 2014
Dan Handley committed on 5 Mar 2014
Showing 2 changed files
View
include/bakery_lock.h
View
lib/sync/locks/bakery/bakery_lock.c