timer: Initialize the field slack of timer_list
authorChangli Gao <xiaosuo@gmail.com>
Wed, 20 Oct 2010 22:57:30 +0000 (15:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Oct 2010 15:30:06 +0000 (17:30 +0200)
TIMER_INITIALIZER() should initialize the field slack of timer_list as
__init_timer() does.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/timer.h

index f3dccdb44f95fc43e3f0df93075a98519d760c4b..1794674c1a525328fcd5f1c279c006265100729f 100644 (file)
@@ -54,6 +54,7 @@ extern struct tvec_base boot_tvec_bases;
                .expires = (_expires),                          \
                .data = (_data),                                \
                .base = &boot_tvec_bases,                       \
+               .slack = -1,                                    \
                __TIMER_LOCKDEP_MAP_INITIALIZER(                \
                        __FILE__ ":" __stringify(__LINE__))     \
        }