Remove the `owner` field in bakery_lock_t data structure
authorSoby Mathew <soby.mathew@arm.com>
Fri, 20 Feb 2015 16:04:17 +0000 (16:04 +0000)
committerSoby Mathew <soby.mathew@arm.com>
Fri, 27 Mar 2015 10:20:32 +0000 (10:20 +0000)
commit548579f56eb95d3d4ba1484a8922a9f6e0a03c73
treef3aeac2b4605b0f8ee56a6d12f0ca6c4e4d5b0a6
parent1c9573a157f0d6d76ded5e651bb3f0b9f3a3c9ec
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
include/lib/bakery_lock.h
lib/locks/bakery/bakery_lock_coherent.c
lib/locks/bakery/bakery_lock_normal.c