mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
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:
committed by
Xiang Xiao
parent
8db732afb1
commit
6bd9ef6992
@@ -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) */
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user