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 <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen
2026-01-07 11:50:33 +08:00
committed by Xiang Xiao
parent 8db732afb1
commit 6bd9ef6992
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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) */
};
+1 -1
View File
@@ -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();