summaryrefslogtreecommitdiff
path: root/plat/imx/imx8m/include
diff options
context:
space:
mode:
authorJacky Bai <ping.bai@nxp.com>2020-01-07 11:05:22 +0800
committerJacky Bai <ping.bai@nxp.com>2020-02-09 20:58:49 +0800
commit4bd311ed653851ba3bb1cdad04dd40b98c241491 (patch)
tree7973f9c7630c4d0b27af224fa774e6c166336ba9 /plat/imx/imx8m/include
parenta487b734b98734bf49c5ae04d91b70460587b1fe (diff)
plat: imx8m: Fix the race condition during cpu hotplug
CPU hotplug & cpuidle have some race condition when doing CPU hotplug stress test. different CPU cores have the chance to access the same GPC register(A53_AD), so lock is necessary to do exlusive access. Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Diffstat (limited to 'plat/imx/imx8m/include')
-rw-r--r--plat/imx/imx8m/include/gpc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/imx/imx8m/include/gpc.h b/plat/imx/imx8m/include/gpc.h
index d7e72228..3ea7d8ee 100644
--- a/plat/imx/imx8m/include/gpc.h
+++ b/plat/imx/imx8m/include/gpc.h
@@ -117,6 +117,8 @@ struct imx_pwr_domain {
bool init_on;
};
+DECLARE_BAKERY_LOCK(gpc_lock);
+
/* function declare */
void imx_gpc_init(void);
void imx_set_cpu_secure_entry(unsigned int core_index, uintptr_t sec_entrypoint);