#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#include <linux/modversions.h>
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#endif /* __KERNEL__ && !DUMP_KERNEL */
#include <afs/afs_sysnames.h>
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#endif /* __KERNEL__ && !DUMP_KERNEL */
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#endif /* __KERNEL__ && !DUMP_KERNEL */
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#endif /* __KERNEL__ && !DUMP_KERNEL */
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
-
+#define AFS_GLOBAL_SUNLOCK
#endif /* __KERNEL__ && !DUMP_KERNEL*/
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#endif /* __KERNEL__ && !DUMP_KERNEL */
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#include <linux/modversions.h>
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#include <linux/modversions.h>
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
extern unsigned long __per_cpu_offset[NR_CPUS];
extern SYSCALLTYPE sys_call_table_emu[] __attribute__((weak));
#endif /* __KERNEL__ && !DUMP_KERNEL */
#ifdef AFS_SMP
#define CONFIG_SMP 1
#define __SMP__
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#endif /* __KERNEL__ && !DUMP_KERNEL */
#include <afs/afs_sysnames.h>
#ifndef __SMP__
#define __SMP__
#endif
-#define AFS_GLOBAL_SUNLOCK
#endif
+#define AFS_GLOBAL_SUNLOCK
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#include "rx_kmutex.h"
#include "rx/rx_kernel.h"
-#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
-
void
afs_mutex_init(afs_kmutex_t * l)
{
AFS_GLOCK();
MUTEX_ENTER(l);
}
-
-#endif
#define AFS_GLOBAL_RXLOCK_KERNEL 1
-#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
#define RX_ENABLE_LOCKS 1
#ifndef _LINUX_CODA_FS_I
#define CV_BROADCAST(cv) wake_up((struct wait_queue**)cv)
#endif
-#else
-
-#define MUTEX_ISMINE(a)
-#define osirx_AssertMine(addr, msg)
-
-#define MUTEX_DESTROY(a)
-#define MUTEX_ENTER(a)
-#define MUTEX_TRYENTER(a) 1
-#define MUTEX_EXIT(a)
-#define MUTEX_INIT(a,b,c,d)
-#define CV_INIT(a,b,c,d)
-#define CV_DESTROY(a)
-#endif
-
-/* Since we're using the RX listener daemon, we don't need to hold off
- * interrupts.
- */
-#define SPLVAR
-#define NETPRI
-#define USERPRI
-
#endif /* RX_KMUTEX_H_ */
/* ARCH/rx_kmutex.c */
-#if defined(KERNEL) && defined(AFS_LINUX20_ENV) && (defined(CONFIG_SMP) || defined(CONFIG_PREEMPT))
+#if defined(KERNEL) && defined(AFS_LINUX20_ENV)
extern void afs_mutex_init(afs_kmutex_t * l);
extern void afs_mutex_enter(afs_kmutex_t * l);
extern int afs_mutex_tryenter(afs_kmutex_t * l);