ia64/xen-unstable

view linux-2.4.29-xen-sparse/include/asm-xen/queues.h @ 3887:4385894c52ae

bitkeeper revision 1.1230.2.4 (421a95cepOZORm0EbZfqBeZ6PZ8MwA)

Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
author iap10@freefall.cl.cam.ac.uk
date Tue Feb 22 02:15:42 2005 +0000 (2005-02-22)
parents 0a4b76b6b5a0
children
line source
2 /* Work-queue emulation over task queues. Pretty simple. */
4 #ifndef __QUEUES_H__
5 #define __QUEUES_H__
7 #include <linux/version.h>
8 #include <linux/list.h>
9 #include <linux/tqueue.h>
11 #define DECLARE_TQUEUE(_name, _fn, _arg) \
12 struct tq_struct _name = { LIST_HEAD_INIT((_name).list), 0, _fn, _arg }
13 #define DECLARE_WORK(_name, _fn, _arg) DECLARE_TQUEUE(_name, _fn, _arg)
15 #define work_struct tq_struct
16 #define INIT_WORK(_work, _fn, _arg) INIT_TQUEUE(_work, _fn, _arg)
18 #define schedule_work(_w) schedule_task(_w)
20 #endif /* __QUEUES_H__ */