From 158f2d91b9e0a911494b3755768e209b12dea980 Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Sun, 20 Mar 2005 20:12:05 +0000 Subject: [PATCH] linux-rx-spinlocks-for-preempt-20050320 FIXES 17966 force linux spinlocks on when CONFIG_PREEMPT is involved --- src/rx/LINUX/rx_kmutex.c | 2 +- src/rx/LINUX/rx_kmutex.h | 2 +- src/rx/rx_prototypes.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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);