Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dposix-timers.h79 struct cpu_timer *ctmr) in cpu_timer_enqueue() argument
81 ctmr->head = head; in cpu_timer_enqueue()
82 return timerqueue_add(head, &ctmr->node); in cpu_timer_enqueue()
85 static inline bool cpu_timer_queued(struct cpu_timer *ctmr) in cpu_timer_queued() argument
87 return !!ctmr->head; in cpu_timer_queued()
90 static inline bool cpu_timer_dequeue(struct cpu_timer *ctmr) in cpu_timer_dequeue() argument
92 if (cpu_timer_queued(ctmr)) { in cpu_timer_dequeue()
93 timerqueue_del(ctmr->head, &ctmr->node); in cpu_timer_dequeue()
94 ctmr->head = NULL; in cpu_timer_dequeue()
100 static inline u64 cpu_timer_getexpires(struct cpu_timer *ctmr) in cpu_timer_getexpires() argument
[all …]
/Linux-v5.15/kernel/time/
Dposix-cpu-timers.c447 struct cpu_timer *ctmr = &timer->it.cpu; in disarm_timer() local
450 if (!cpu_timer_dequeue(ctmr)) in disarm_timer()
454 if (cpu_timer_getexpires(ctmr) == base->nextevt) in disarm_timer()
467 struct cpu_timer *ctmr = &timer->it.cpu; in posix_cpu_timer_del() local
488 WARN_ON_ONCE(ctmr->head || timerqueue_node_queued(&ctmr->node)); in posix_cpu_timer_del()
501 put_pid(ctmr->pid); in posix_cpu_timer_del()
509 struct cpu_timer *ctmr; in cleanup_timerqueue() local
513 ctmr = container_of(node, struct cpu_timer, node); in cleanup_timerqueue()
514 ctmr->head = NULL; in cleanup_timerqueue()
553 struct cpu_timer *ctmr = &timer->it.cpu; in arm_timer() local
[all …]