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 d623e341a6d846f4ba554ec40e85abe0f9d5f08b Author: wangshaoxin <[email protected]> AuthorDate: Wed Aug 12 16:32:29 2026 +0800 timers/rpmsg_boottime: dispatch client ept callback from RX interrupt Set RPMSG_PRIO_RT on the client endpoint so rpmsg_virtio_rx_dispatch() invokes rpmsg_boottime_ept_cb() inline from the RX interrupt instead of queueing it to a worker thread. The sync packet arrival timestamp is what bounds the achievable clock sync accuracy, so removing the thread wakeup between packet arrival and rpmsg_boottime_get_time() directly reduces the sampling error. Signed-off-by: wangshaoxin <[email protected]> --- drivers/timers/rpmsg_boottime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/timers/rpmsg_boottime.c b/drivers/timers/rpmsg_boottime.c index e2bc4456531..867171594b5 100644 --- a/drivers/timers/rpmsg_boottime.c +++ b/drivers/timers/rpmsg_boottime.c @@ -393,6 +393,8 @@ static void rpmsg_boottime_client_created(FAR struct rpmsg_device *rdev, client->ept.priv = client; client->ept.release_cb = rpmsg_boottime_client_ept_release; client->ept.ns_bound_cb = rpmsg_boottime_client_ns_bound; + + rpmsg_set_priority(&client->ept, RPMSG_PRIO_RT); rpmsg_create_ept(&client->ept, rdev, RPMSG_BOOTTIME_EPT_NAME, RPMSG_ADDR_ANY, RPMSG_ADDR_ANY, rpmsg_boottime_ept_cb, NULL);
