Skip to content

Commit

Permalink
timer: Initialize the field slack of timer_list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Changli Gao authored and Thomas Gleixner committed Oct 21, 2010
1 parent d095902 commit aaabe31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)) \
}
Expand Down

0 comments on commit aaabe31

Please sign in to comment.