timers: Introduce timerlist infrastructure.
authorJohn Stultz <john.stultz@linaro.org>
Tue, 21 Sep 2010 00:42:46 +0000 (17:42 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 3 Dec 2010 00:41:39 +0000 (16:41 -0800)
commit87de5ac782761a3ebf806e434e8c9cc205a87274
tree8186969d00da5d0daea37fcb92538bbc72c8f086
parent5e4f083f78d03e9f8d2e327daccde16976f9bb00
timers: Introduce timerlist infrastructure.

The timerlist infrastructure is a thin layer over the rbtree
code that implements a simple list of timers sorted by an
expires value, and a getnext function that provides a pointer
to the earliest timer.

This infrastructure allows drivers and other kernel infrastructure
to easily implement timers without duplicating code.

Signed-off-by: John Stultz <john.stultz@linaro.org>
LKML Reference: <1290136329-18291-2-git-send-email-john.stultz@linaro.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
CC: Alessandro Zummo <a.zummo@towertech.it>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Richard Cochran <richardcochran@gmail.com>
include/linux/timerlist.h [new file with mode: 0644]
lib/Makefile
lib/timerlist.c [new file with mode: 0644]