"vscode:/vscode.git/clone" did not exist on "93cc3964e2d265ab0571298d69d2eed0a65d13f2"
Commit c3ec0b9e authored by Vikram Kanigiri's avatar Vikram Kanigiri
Browse files

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
parent e25e6f41
...@@ -53,7 +53,8 @@ ...@@ -53,7 +53,8 @@
static int spm_dormant_sta = CPU_DORMANT_RESET; static int spm_dormant_sta = CPU_DORMANT_RESET;
#endif #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_hotplug_ready __attribute__ ((section("tzfw_coherent_mem")));
static int spm_mcdi_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"))); static int spm_suspend_ready __attribute__ ((section("tzfw_coherent_mem")));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment