aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/queuelock.h
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu>2007-02-01 17:35:46 -0500
committerBjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu>2007-02-01 17:35:46 -0500
commitc72efb7abd520758e86317c8eb451ed607042ad9 (patch)
treed14e61b14ed2b01f683829eefd20d66fd3d549eb /include/linux/queuelock.h
parentad1e19d0fafe82cc5f8180c0f9221458d439d9fa (diff)
Added litmus.c, made it compile.
Diffstat (limited to 'include/linux/queuelock.h')
-rw-r--r--include/linux/queuelock.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/queuelock.h b/include/linux/queuelock.h
new file mode 100644
index 0000000000..0fa396a724
--- /dev/null
+++ b/include/linux/queuelock.h
@@ -0,0 +1,32 @@
1#ifndef _UNC_QUEUE_LOCK_H_
2#define _UNC_QUEUE_LOCK_H_
3/**
4* Queue lock
5*
6*
7* CLEANUP: Q-Locks to be re-implemented properly for the new LITMUS.
8* Until then, we just use spin locks to make the code compile.
9*/
10
11#include <linux/spinlock.h>
12
13typedef spinlock_t queuelock_t;
14
15
16
17/* The new linux-like queue lock API.
18
19 int init_queuelock(queuelock_t* lock, int num_procs);
20 void queue_lock_wipe(queuelock_t * lock);
21 void queue_lock(queuelock_t *);
22 void queue_unlock(queuelock_t *);
23
24*/
25
26
27#define queue_lock_init(lock, dummy) spin_lock_init(lock)
28#define queue_lock_wipe(lock) spin_lock_init(lock)
29#define queue_lock(lock) spin_lock(lock)
30#define queue_unlock(lock) spin_unlock(lock)
31
32#endif /* _UNC_QUEUE_LOCK_H_ */