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
1616 };
1717
1818
19−extern void timerqueue_add(struct timerqueue_head *head,
20− struct timerqueue_node *node);
21−extern void timerqueue_del(struct timerqueue_head *head,
22− struct timerqueue_node *node);
19+extern bool timerqueue_add(struct timerqueue_head *head,
20+ struct timerqueue_node *node);
21+extern bool timerqueue_del(struct timerqueue_head *head,
22+ struct timerqueue_node *node);
2323 extern struct timerqueue_node *timerqueue_iterate_next(
2424 struct timerqueue_node *node);
2525

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