diff --git a/src/rx/LINUX/rx_kmutex.c b/src/rx/LINUX/rx_kmutex.c index af72212165..a420d5ee3e 100644 --- a/src/rx/LINUX/rx_kmutex.c +++ b/src/rx/LINUX/rx_kmutex.c @@ -23,7 +23,7 @@ RCSID #include "rx_kmutex.h" #include "rx/rx_kernel.h" -#ifdef CONFIG_SMP +#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT) void afs_mutex_init(afs_kmutex_t * l) diff --git a/src/rx/LINUX/rx_kmutex.h b/src/rx/LINUX/rx_kmutex.h index b9e7886337..bc1bed8155 100644 --- a/src/rx/LINUX/rx_kmutex.h +++ b/src/rx/LINUX/rx_kmutex.h @@ -24,7 +24,7 @@ #define AFS_GLOBAL_RXLOCK_KERNEL 1 -#ifdef CONFIG_SMP +#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT) #define RX_ENABLE_LOCKS 1 #ifndef _LINUX_CODA_FS_I diff --git a/src/rx/rx_prototypes.h b/src/rx/rx_prototypes.h index 823b022324..303a58e4e6 100644 --- a/src/rx/rx_prototypes.h +++ b/src/rx/rx_prototypes.h @@ -354,7 +354,7 @@ extern void osi_StopListener(void); /* ARCH/rx_kmutex.c */ -#ifdef CONFIG_SMP +#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT) 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);