This is an automated email from the ASF dual-hosted git repository.

ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 281f9fc0c0f8e2363beedfb899027f26891d5934
Author: ouyangxiangzhen <[email protected]>
AuthorDate: Mon Jan 26 11:48:27 2026 +0800

    sched/hrtimer: Rename the HRTIMER_CANCEL_SYNC_DELAY timeout.
    
    This commit renamed the HRTIMER_CANCEL_SYNC_DELAY_MS to
    HRTIMER_CANCEL_SYNC_DELAY_US.
    
    Signed-off-by: ouyangxiangzhen <[email protected]>
---
 sched/hrtimer/hrtimer.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sched/hrtimer/hrtimer.h b/sched/hrtimer/hrtimer.h
index 9ec29bc227f..606cd086350 100644
--- a/sched/hrtimer/hrtimer.h
+++ b/sched/hrtimer/hrtimer.h
@@ -43,7 +43,7 @@
 
 /* Delay used while waiting for a running hrtimer callback to complete */
 
-#define HRTIMER_CANCEL_SYNC_DELAY_MS  5
+#define HRTIMER_CANCEL_SYNC_DELAY_US CONFIG_USEC_PER_TICK
 
 /****************************************************************************
  * Public Types
@@ -513,7 +513,7 @@ static inline_function void hrtimer_wait(FAR hrtimer_t 
*timer)
         {
           if (!up_interrupt_context() && !is_idle_task(this_task()))
             {
-              nxsched_msleep(HRTIMER_CANCEL_SYNC_DELAY_MS);
+              nxsched_usleep(HRTIMER_CANCEL_SYNC_DELAY_US);
             }
 
           /* Otherwise, spin-wait is enough. */

Reply via email to