Home
last modified time | relevance | path

Searched refs:ctmr (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/include/linux/
Dposix-timers.h78 struct cpu_timer *ctmr) in cpu_timer_enqueue() argument
80 ctmr->head = head; in cpu_timer_enqueue()
81 return timerqueue_add(head, &ctmr->node); in cpu_timer_enqueue()
84 static inline bool cpu_timer_queued(struct cpu_timer *ctmr) in cpu_timer_queued() argument
86 return !!ctmr->head; in cpu_timer_queued()
89 static inline bool cpu_timer_dequeue(struct cpu_timer *ctmr) in cpu_timer_dequeue() argument
91 if (cpu_timer_queued(ctmr)) { in cpu_timer_dequeue()
92 timerqueue_del(ctmr->head, &ctmr->node); in cpu_timer_dequeue()
93 ctmr->head = NULL; in cpu_timer_dequeue()
99 static inline u64 cpu_timer_getexpires(struct cpu_timer *ctmr) in cpu_timer_getexpires() argument
[all …]
/Linux-v6.1/kernel/time/
Dposix-cpu-timers.c454 struct cpu_timer *ctmr = &timer->it.cpu; in disarm_timer() local
457 if (!cpu_timer_dequeue(ctmr)) in disarm_timer()
461 if (cpu_timer_getexpires(ctmr) == base->nextevt) in disarm_timer()
474 struct cpu_timer *ctmr = &timer->it.cpu; in posix_cpu_timer_del() local
495 WARN_ON_ONCE(ctmr->head || timerqueue_node_queued(&ctmr->node)); in posix_cpu_timer_del()
508 put_pid(ctmr->pid); in posix_cpu_timer_del()
516 struct cpu_timer *ctmr; in cleanup_timerqueue() local
520 ctmr = container_of(node, struct cpu_timer, node); in cleanup_timerqueue()
521 ctmr->head = NULL; in cleanup_timerqueue()
560 struct cpu_timer *ctmr = &timer->it.cpu; in arm_timer() local
[all …]