direct-io.hg

view linux-2.4.30-xen-sparse/include/asm-xen/queues.h @ 5517:10e9028c8e3d

bitkeeper revision 1.1718.1.10 (42b7b19aqOS_1M8I4pIOFjiTPYWV-g)

Merge bk://xenbits.xensource.com/xen-unstable.bk
into spot.cl.cam.ac.uk:C:/Documents and Settings/iap10/xen-unstable.bk
author iap10@spot.cl.cam.ac.uk
date Tue Jun 21 06:20:10 2005 +0000 (2005-06-21)
parents 85fcf3b1b7a5
children 56a63f9f378f
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__ */