[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
@@ -50,7 +50,7 @@ static atomic_t fl_size = ATOMIC_INIT(0);
|
||||
static struct ip6_flowlabel *fl_ht[FL_HASH_MASK+1];
|
||||
|
||||
static void ip6_fl_gc(unsigned long dummy);
|
||||
static struct timer_list ip6_fl_gc_timer = TIMER_INITIALIZER(ip6_fl_gc, 0, 0);
|
||||
static DEFINE_TIMER(ip6_fl_gc_timer, ip6_fl_gc, 0, 0);
|
||||
|
||||
/* FL hash table lock: it protects only of GC */
|
||||
|
||||
|
Reference in New Issue
Block a user