This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6bd9ef69924672e699648b28c9b28534211d2c0b Author: ouyangxiangzhen <[email protected]> AuthorDate: Wed Jan 7 11:50:33 2026 +0800 sched/hrtimer: Rename the callback type to hrtimer_entry_t. This commit renamed the callback type to `hrtimer_entry_t`, aligning with the `wdentry_t` in wdog.. Signed-off-by: ouyangxiangzhen <[email protected]> --- include/nuttx/hrtimer.h | 6 +++--- sched/hrtimer/hrtimer_process.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nuttx/hrtimer.h b/include/nuttx/hrtimer.h index 9b8a33fcc5f..e6c617b6b29 100644 --- a/include/nuttx/hrtimer.h +++ b/include/nuttx/hrtimer.h @@ -65,8 +65,8 @@ typedef struct hrtimer_node_s hrtimer_node_t; * timer context and must not block. */ -typedef CODE uint64_t -(*hrtimer_cb)(FAR const hrtimer_t *hrtimer, uint64_t expired); +typedef CODE uint64_t (*hrtimer_entry_t)(FAR const hrtimer_t *hrtimer, + uint64_t expired); /* Red-black tree node used to order hrtimers by expiration time */ @@ -85,7 +85,7 @@ struct hrtimer_node_s struct hrtimer_s { hrtimer_node_t node; /* RB-tree node for sorted insertion */ - hrtimer_cb func; /* Expiration callback function */ + hrtimer_entry_t func; /* Expiration callback function */ uint64_t expired; /* Absolute expiration time (ns) */ }; diff --git a/sched/hrtimer/hrtimer_process.c b/sched/hrtimer/hrtimer_process.c index d5b9183e1ec..d9a915d2a6f 100644 --- a/sched/hrtimer/hrtimer_process.c +++ b/sched/hrtimer/hrtimer_process.c @@ -71,7 +71,7 @@ void hrtimer_process(uint64_t now) { FAR hrtimer_t *hrtimer; irqstate_t flags; - hrtimer_cb func; + hrtimer_entry_t func; uint64_t expired; uint64_t period; int cpu = this_cpu();
