aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r--include/linux/workqueue.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index b36291130f22..20b59eb1facd 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -124,6 +124,12 @@ struct execute_work {
124 init_timer_deferrable(&(_work)->timer); \ 124 init_timer_deferrable(&(_work)->timer); \
125 } while (0) 125 } while (0)
126 126
127#define INIT_DELAYED_WORK_ON_STACK(_work, _func) \
128 do { \
129 INIT_WORK(&(_work)->work, (_func)); \
130 init_timer_on_stack(&(_work)->timer); \
131 } while (0)
132
127/** 133/**
128 * work_pending - Find out whether a work item is currently pending 134 * work_pending - Find out whether a work item is currently pending
129 * @work: The work item in question 135 * @work: The work item in question