summaryrefslogtreecommitdiffstats
path: root/include/linux/timer.h
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-10-20 15:57:30 -0700
committerThomas Gleixner <tglx@linutronix.de>2010-10-21 17:30:06 +0200
commitaaabe31c25a439b92cc281b14ca18b85bae7e7a6 (patch)
treea42754b86ce0e8272655dd6710269f403e3f4271 /include/linux/timer.h
parentd0959024d8fb6555ba8bfdc6624cc7b7c2e675fd (diff)
downloadlinux-aaabe31c25a439b92cc281b14ca18b85bae7e7a6.tar.gz
linux-aaabe31c25a439b92cc281b14ca18b85bae7e7a6.tar.bz2
linux-aaabe31c25a439b92cc281b14ca18b85bae7e7a6.zip
timer: Initialize the field slack of timer_list
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>
Diffstat (limited to 'include/linux/timer.h')
-rw-r--r--include/linux/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/timer.h b/include/linux/timer.h
index f3dccdb44f95..1794674c1a52 100644
--- a/include/linux/timer.h
+++ b/include/linux/timer.h
@@ -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__)) \
}