Commit 5db72991 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] use timer intialiser in workqueues

Teach DECLARE_WORK about __TIMER_INITIALIZER.  So all statically
initialised workqueues have valid timers.  eg:
drivers/char/random.c:batch_work.
parent d737f84b
......@@ -22,7 +22,9 @@ struct work_struct {
#define __WORK_INITIALIZER(n, f, d) { \
.entry = { &(n).entry, &(n).entry }, \
.func = (f), \
.data = (d) }
.data = (d), \
.timer = TIMER_INITIALIZER(NULL, 0, 0), \
}
#define DECLARE_WORK(n, f, d) \
struct work_struct n = __WORK_INITIALIZER(n, f, d)
......
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