summaryrefslogtreecommitdiff
path: root/linux/pcmcia-cs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-08-04 17:05:43 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:11 +0200
commita8711d20ce670b1f88f6926cb15d11a5674da41a (patch)
tree8eec056dd05a21b53b47689cea4d8a84b90f1394 /linux/pcmcia-cs
parent34092331595b5a159cf31217766e5ab237d60749 (diff)
2007-08-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
* linux/pcmcia-cs/modules/cs_internal.h: Use __SMP__ instead of USE_SPIN_LOCKS. * linux/pcmcia-cs/modules/i82365.c: Likewise. * linux/pcmcia-cs/modules/rsrc_mgr.c: Likewise.
Diffstat (limited to 'linux/pcmcia-cs')
-rw-r--r--linux/pcmcia-cs/modules/cs_internal.h2
-rw-r--r--linux/pcmcia-cs/modules/i82365.c2
-rw-r--r--linux/pcmcia-cs/modules/rsrc_mgr.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/linux/pcmcia-cs/modules/cs_internal.h b/linux/pcmcia-cs/modules/cs_internal.h
index c4d4d45..c9f98f8 100644
--- a/linux/pcmcia-cs/modules/cs_internal.h
+++ b/linux/pcmcia-cs/modules/cs_internal.h
@@ -131,7 +131,7 @@ typedef struct config_t {
#define MAX_CIS_DATA 512
typedef struct socket_info_t {
-#ifdef USE_SPIN_LOCKS
+#ifdef __SMP__
spinlock_t lock;
#endif
ss_entry_t ss_entry;
diff --git a/linux/pcmcia-cs/modules/i82365.c b/linux/pcmcia-cs/modules/i82365.c
index 9aaf540..17ddf66 100644
--- a/linux/pcmcia-cs/modules/i82365.c
+++ b/linux/pcmcia-cs/modules/i82365.c
@@ -184,7 +184,7 @@ static socket_info_t socket[8] = {
#ifdef CONFIG_ISA
static int grab_irq;
-#ifdef USE_SPIN_LOCKS
+#ifdef __SMP__
static spinlock_t isa_lock = SPIN_LOCK_UNLOCKED;
#endif
#define ISA_LOCK(s, f) \
diff --git a/linux/pcmcia-cs/modules/rsrc_mgr.c b/linux/pcmcia-cs/modules/rsrc_mgr.c
index 2becb2f..a94926a 100644
--- a/linux/pcmcia-cs/modules/rsrc_mgr.c
+++ b/linux/pcmcia-cs/modules/rsrc_mgr.c
@@ -109,7 +109,7 @@ static irq_info_t irq_table[16] = { { 0, 0, 0 }, /* etc */ };
#if defined(CONFIG_PNP_BIOS) || !defined(HAVE_MEMRESERVE)
-#ifdef USE_SPIN_LOCKS
+#ifdef __SMP__
static spinlock_t rsrc_lock = SPIN_LOCK_UNLOCKED;
#endif