Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224030
b: refs/heads/master
c: 9bb99b1
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz committed Dec 10, 2010
1 parent 92f17bf commit 44340b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f5a24794a54588ea3a9efd521be31d826e0b9d7
refs/heads/master: 9bb99b147018945366c763b3d4d7008927dc8557
7 changes: 5 additions & 2 deletions trunk/lib/timerqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <linux/timerqueue.h>
#include <linux/rbtree.h>
#include <linux/module.h>

/**
* timerqueue_add - Adds timer to timerqueue.
Expand Down Expand Up @@ -57,6 +58,7 @@ void timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)
if (!head->next || node->expires.tv64 < head->next->expires.tv64)
head->next = node;
}
EXPORT_SYMBOL_GPL(timerqueue_add);

/**
* timerqueue_del - Removes a timer from the timerqueue.
Expand All @@ -80,7 +82,7 @@ void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node)
rb_erase(&node->node, &head->head);
RB_CLEAR_NODE(&node->node);
}

EXPORT_SYMBOL_GPL(timerqueue_del);

/**
* timerqueue_getnext - Returns the timer with the earlies expiration time
Expand All @@ -94,7 +96,7 @@ struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head)
{
return head->next;
}

EXPORT_SYMBOL_GPL(timerqueue_getnext);

/**
* timerqueue_iterate_next - Returns the timer after the provided timer
Expand All @@ -116,3 +118,4 @@ struct timerqueue_node *timerqueue_iterate_next(struct timerqueue_node *node)
return NULL;
return container_of(next, struct timerqueue_node, node);
}
EXPORT_SYMBOL_GPL(timerqueue_iterate_next);

0 comments on commit 44340b8

Please sign in to comment.