Commit bc3c081b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] timers: initialisers

Add some infrastructure for statically initialising timers,
use that in workqueues.
parent 2eb724ed
...@@ -22,6 +22,15 @@ struct timer_list { ...@@ -22,6 +22,15 @@ struct timer_list {
#define TIMER_MAGIC 0x4b87ad6e #define TIMER_MAGIC 0x4b87ad6e
#define TIMER_INITIALIZER(_function, _expires, _data) { \
.function = (_function), \
.expires = (_expires), \
.data = (_data), \
.base = NULL, \
.magic = TIMER_MAGIC, \
.lock = SPIN_LOCK_UNLOCKED, \
}
/*** /***
* init_timer - initialize a timer. * init_timer - initialize a timer.
* @timer: the timer to be initialized * @timer: the timer to be initialized
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment