diff options
author | Vikram Kanigiri <vikram.kanigiri@arm.com> | 2015-09-09 10:53:05 +0100 |
---|---|---|
committer | Vikram Kanigiri <vikram.kanigiri@arm.com> | 2015-09-11 16:20:01 +0100 |
commit | c3ec0b9ea4274120c6e82d86ccc427f13f65fa59 (patch) | |
tree | d4cd2a9a3225fb84a39bda89371922401da1dadb /plat/mediatek | |
parent | e25e6f41f75531f3500d5484b16365bf980e913f (diff) |
Use unified bakery locks API in Mediatek port
This patch update Mediatek port to use the `DEFINE_BAKERY_LOCK` macro instead of
specifying the exact data structure to use for a bakery lock and the input
linker section that it should be allocated to.
Change-Id: I2116dbe27010bb46d7cc64fafef55c7240c4c721
Diffstat (limited to 'plat/mediatek')
-rw-r--r-- | plat/mediatek/mt8173/drivers/spm/spm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plat/mediatek/mt8173/drivers/spm/spm.c b/plat/mediatek/mt8173/drivers/spm/spm.c index f67daea0..7c6d72be 100644 --- a/plat/mediatek/mt8173/drivers/spm/spm.c +++ b/plat/mediatek/mt8173/drivers/spm/spm.c @@ -53,7 +53,8 @@ static int spm_dormant_sta = CPU_DORMANT_RESET; #endif -static bakery_lock_t spm_lock __attribute__ ((section("tzfw_coherent_mem"))); +DEFINE_BAKERY_LOCK(spm_lock); + static int spm_hotplug_ready __attribute__ ((section("tzfw_coherent_mem"))); static int spm_mcdi_ready __attribute__ ((section("tzfw_coherent_mem"))); static int spm_suspend_ready __attribute__ ((section("tzfw_coherent_mem"))); |