]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/workqueue.h
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-omap-h63xx.git] / include / linux / workqueue.h
index 47151c8495aa87af42fd32b1c5c269af62f19dd4..3cd51e579ab1c2cddd3960e1154b9c493794a85b 100644 (file)
@@ -130,6 +130,12 @@ struct execute_work {
                init_timer_deferrable(&(_work)->timer);         \
        } while (0)
 
+#define INIT_DELAYED_WORK_ON_STACK(_work, _func)               \
+       do {                                                    \
+               INIT_WORK(&(_work)->work, (_func));             \
+               init_timer_on_stack(&(_work)->timer);           \
+       } while (0)
+
 /**
  * work_pending - Find out whether a work item is currently pending
  * @work: The work item in question