[PATCH] timer initialization cleanup: DEFINE_TIMER
Clean up timer initialization by introducing DEFINE_TIMER a'la DEFINE_SPINLOCK. Build and boot-tested on x86. A similar patch has been been in the -RT tree for some time. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
7c352bdf04
commit
8d06afab73
@@ -780,7 +780,7 @@ static struct file_operations stli_fsiomem = {
|
||||
* much cheaper on host cpu than using interrupts. It turns out to
|
||||
* not increase character latency by much either...
|
||||
*/
|
||||
static struct timer_list stli_timerlist = TIMER_INITIALIZER(stli_poll, 0, 0);
|
||||
static DEFINE_TIMER(stli_timerlist, stli_poll, 0, 0);
|
||||
|
||||
static int stli_timeron;
|
||||
|
||||
|
Reference in New Issue
Block a user