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 27d3d1f2647f54236abb0ab14c3bb5f7b2f683e4 Author: wangshaoxin <[email protected]> AuthorDate: Wed Aug 12 16:14:35 2026 +0800 drivers/timers/rpmsg_rtc: run the client callback in the rx interrupt Set RPMSG_PRIO_RT on the client endpoint, so that rpmsg_virtio calls rpmsg_rtc_ept_cb() directly from the rx interrupt instead of queueing the message to a worker thread. This takes a thread wakeup out of the time sync and alarm paths. Everything the client callback does is safe in an interrupt: the time sync takes a spinlock and calls the atomic clock notifier, an alarm calls the RTC upper half's callback (nxsig_notification()), and a reply is copied out and its semaphore posted. The server endpoint stays at the default priority: its callback takes a mutex and replies with a blocking rpmsg_send(). Signed-off-by: wangshaoxin <[email protected]> --- drivers/timers/rpmsg_rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/timers/rpmsg_rtc.c b/drivers/timers/rpmsg_rtc.c index 645367f6f6e..12544c90de7 100644 --- a/drivers/timers/rpmsg_rtc.c +++ b/drivers/timers/rpmsg_rtc.c @@ -291,6 +291,8 @@ static void rpmsg_rtc_device_ns_bind(FAR struct rpmsg_device *rdev, FAR struct rpmsg_rtc_lowerhalf_s *lower = priv; lower->ept.priv = lower; + + rpmsg_set_priority(&lower->ept, RPMSG_PRIO_RT); rpmsg_create_ept(&lower->ept, rdev, RPMSG_RTC_EPT_NAME, RPMSG_ADDR_ANY, dest, rpmsg_rtc_ept_cb, rpmsg_destroy_ept);
