From be44179b005ee33d936ff55ef743bca5e84ee1b3 Mon Sep 17 00:00:00 2001 From: Bryan Ward Date: Tue, 14 May 2013 12:38:08 -0400 Subject: latest changes on pound. --- include/spinlocks.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/spinlocks.h') diff --git a/include/spinlocks.h b/include/spinlocks.h index d83a0d8..2ae3d27 100644 --- a/include/spinlocks.h +++ b/include/spinlocks.h @@ -28,7 +28,8 @@ typedef struct rwrnlp_struct { int enter[NR_CPUS]; int leave[NR_CPUS]; - request requests[NR_CPUS]; + request requests[NR_CPUS][2]; + int curr[NR_CPUS]; request* wqueue[NR_RESOURCES][NR_CPUS]; unsigned int whead[NR_RESOURCES]; @@ -47,12 +48,12 @@ void spin_unlock(spinlock_t *lock); void rwrnlp_init(rwrnlp *lock); -void rwrnlp_read_lock(rwrnlp *lock, resource_mask_t resources, int processor); +long rwrnlp_read_lock(rwrnlp *lock, resource_mask_t resources, int processor); -void rwrnlp_write_lock(rwrnlp *lock, resource_mask_t resources, int processor); +long rwrnlp_write_lock(rwrnlp *lock, resource_mask_t resources, int processor); -void rwrnlp_read_unlock(rwrnlp *lock, int processor); +long rwrnlp_read_unlock(rwrnlp *lock, int processor); -void rwrnlp_write_unlock(rwrnlp *lock, int processor); +long rwrnlp_write_unlock(rwrnlp *lock, int processor); #endif //SPINLOCKS_H -- cgit v1.2.2