This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6f762c3cc1c5d41810a0aafe5f6d03e1e42d2070 Author: Yongrong Wang <[email protected]> AuthorDate: Wed Nov 25 23:28:39 2026 +0800 drivers/rpmsg: keep the global work queue lock per CPU in BMP mode g_rpmsg_wqueue_lock protects g_rpmsg_wqueues, which is per CPU in BMP mode, so it must be per CPU as well. Signed-off-by: Yongrong Wang <[email protected]> Signed-off-by: Bowen Wang <[email protected]> --- drivers/rpmsg/rpmsg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rpmsg/rpmsg.c b/drivers/rpmsg/rpmsg.c index 7e01ffde517..e515300dbd0 100644 --- a/drivers/rpmsg/rpmsg.c +++ b/drivers/rpmsg/rpmsg.c @@ -122,7 +122,8 @@ MEMPOOL_DEFINE(g_rpmsg_pool, CONFIG_RPMSG_POOL_SIZE, static DEFINE_PER_CPU_BSS_BMP(struct rpmsg_wqueue_s, g_rpmsg_wqueues[CONFIG_RPMSG_WQUEUE_NUMBER]); #define g_rpmsg_wqueues this_cpu_var_bmp(g_rpmsg_wqueues) -static spinlock_t g_rpmsg_wqueue_lock = SP_UNLOCKED; +static DEFINE_PER_CPU_BMP(spinlock_t, g_rpmsg_wqueue_lock) = SP_UNLOCKED; +#define g_rpmsg_wqueue_lock this_cpu_var_bmp(g_rpmsg_wqueue_lock) #endif /****************************************************************************
