locks: linker variables to calculate per-cpu bakery lock size
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 30 Jan 2019 16:26:20 +0000 (08:26 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 7 Feb 2019 17:00:52 +0000 (09:00 -0800)
commit596929b971dc4366a490d5909a265c038502d284
treec30ae2d9e0a3096638d4bbe51eaaf9924392726a
parent5e2fe3a3b54095e48c8e67739175009bb4e29fae
locks: linker variables to calculate per-cpu bakery lock size

This patch introduces explicit linker variables to mark the start and
end of the per-cpu bakery lock section to help bakery_lock_normal.c
calculate the size of the section. This patch removes the previously
used '__PERCPU_BAKERY_LOCK_SIZE__' linker variable to make the code
uniform across GNU linker and ARM linker.

Change-Id: Ie0c51702cbc0fe8a2076005344a1fcebb48e7cca
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
bl31/bl31.ld.S
bl32/sp_min/sp_min.ld.S
lib/locks/bakery/bakery_lock_normal.c
plat/mediatek/mt6795/bl31.ld.S