diff options
Diffstat (limited to 'include/linux/posix-timers.h')
| -rw-r--r-- | include/linux/posix-timers.h | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index 4cf1fbe8d1bc..00fef0064355 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h @@ -82,9 +82,14 @@ static inline bool cpu_timer_enqueue(struct timerqueue_head *head,  	return timerqueue_add(head, &ctmr->node);  } +static inline bool cpu_timer_queued(struct cpu_timer *ctmr) +{ +	return !!ctmr->head; +} +  static inline bool cpu_timer_dequeue(struct cpu_timer *ctmr)  { -	if (ctmr->head) { +	if (cpu_timer_queued(ctmr)) {  		timerqueue_del(ctmr->head, &ctmr->node);  		ctmr->head = NULL;  		return true;  | 
