rx stats atomic inclusion needs kmutexes for emulation
authorDerrick Brashear <shadow@dementia.org>
Sun, 3 Oct 2010 06:02:22 +0000 (02:02 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 3 Oct 2010 17:54:18 +0000 (10:54 -0700)
for platforms with no native atomics we use a mutex. well,
fine, but without defining kernel mutexes, that doesn't work so
well.

Change-Id: Ia85e24aad8684a3855511de9548acee4ab86e83e
Reviewed-on: http://gerrit.openafs.org/2890
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/rx/rx_stats.c

index 5c22ab6..c4c0d12 100644 (file)
 #include <string.h>
 #endif
 
+#ifdef KERNEL
+/* no kmutex, no atomic emulation...*/
+#include "rx/rx_kcommon.h"
+#else
 #include "rx.h"
+#endif
 #include "rx_atomic.h"
 #include "rx_stats.h"