rx: Add a no-op afs_kcondvar_t for LWP
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 9 Nov 2012 23:11:16 +0000 (23:11 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 28 Nov 2012 19:01:20 +0000 (11:01 -0800)
Remove the need to protect afs_kcondvar_t with RX_ENABLE_LOCKS, by
typedefing it as an int in rx_lwp.c. This is identical to what we
already do with afs_kmutex_t, and should let us get rid of some more
preprocessor spaghetti.

Change-Id: Ica6114585a68abde691ceee47d92d7f4e230a9bc
Reviewed-on: http://gerrit.openafs.org/8534
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/rx/rx_lwp.h

index 6ce407f..7da9517 100644 (file)
@@ -18,6 +18,7 @@
 #ifndef KDUMP_KERNEL
 
 typedef int afs_kmutex_t;
+typedef int afs_kcondvar_t;
 
 #define CALL_HOLD(call, type)
 #define CALL_HOLD_R(call, type)