diff options
author | Nathan Scott <nathans@sgi.com> | 2005-09-05 08:27:50 +1000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-09-05 08:27:50 +1000 |
commit | 53937c52c3f1dff6100174f50a85c068f16713ae (patch) | |
tree | 4d0355092af3e324fc7d66d7964f0b7e69105bc6 /fs | |
parent | 526c420c44b45b11e25a98f37702cc3044ba9bdc (diff) | |
download | kernel_samsung_tuna-53937c52c3f1dff6100174f50a85c068f16713ae.zip kernel_samsung_tuna-53937c52c3f1dff6100174f50a85c068f16713ae.tar.gz kernel_samsung_tuna-53937c52c3f1dff6100174f50a85c068f16713ae.tar.bz2 |
[XFS] Manage spinlock differences between kernel versions a bit.
SGI-PV: 904196
SGI-Modid: xfs-linux:xfs-kern:23563a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/spin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/spin.h b/fs/xfs/linux-2.6/spin.h index bcf60a0..0039504 100644 --- a/fs/xfs/linux-2.6/spin.h +++ b/fs/xfs/linux-2.6/spin.h @@ -45,6 +45,9 @@ typedef spinlock_t lock_t; #define SPLDECL(s) unsigned long s +#ifndef DEFINE_SPINLOCK +#define DEFINE_SPINLOCK(s) spinlock_t s = SPIN_LOCK_UNLOCKED +#endif #define spinlock_init(lock, name) spin_lock_init(lock) #define spinlock_destroy(lock) |