History

timerqueue: Let timerqueue_add/del return information

The hrtimer code is interested whether the added timer is the first one to expire and whether the removed timer was the last one in the tree. The add/del routines have that information already. So we can return it right away instead of reevaluating it at the call site.

Thomas Gleixner committed 11 years ago

Commit c3206421 parent b8e38412 files · +11 −7Browse files

Showing the changes to include/linux/timerqueue.h (1 of 2 files). Show all

Unified · Split

include/linux/timerqueue.h+4−4
@@ -16,10 +16,10 @@ struct timerqueue_head { · 15 unmodified lines
16};16};
17 17
18 18
19extern void timerqueue_add(struct timerqueue_head *head,19extern bool timerqueue_add(struct timerqueue_head *head,
20 struct timerqueue_node *node);20 struct timerqueue_node *node);
21extern void timerqueue_del(struct timerqueue_head *head,21extern bool timerqueue_del(struct timerqueue_head *head,
22 struct timerqueue_node *node);22 struct timerqueue_node *node);
23extern struct timerqueue_node *timerqueue_iterate_next(23extern struct timerqueue_node *timerqueue_iterate_next(
24 struct timerqueue_node *node);24 struct timerqueue_node *node);
25 25

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t