proc: use seq_puts()/seq_putc() where possible
[cascardo/linux.git] / lib / timerqueue.c
index f46de84..e3a1050 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <linux/timerqueue.h>
 #include <linux/rbtree.h>
+#include <linux/module.h>
 
 /**
  * timerqueue_add - Adds timer to timerqueue.
@@ -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.
@@ -80,21 +82,7 @@ void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node)
        rb_erase(&node->node, &head->head);
        RB_CLEAR_NODE(&node->node);
 }
-
-
-/**
- * timerqueue_getnext - Returns the timer with the earlies expiration time
- *
- * @head: head of timerqueue
- *
- * Returns a pointer to the timer node that has the
- * earliest expiration time.
- */
-struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head)
-{
-       return head->next;
-}
-
+EXPORT_SYMBOL_GPL(timerqueue_del);
 
 /**
  * timerqueue_iterate_next - Returns the timer after the provided timer
@@ -116,3 +104,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);