patch-2.1.35 linux/include/asm-alpha/spinlock.h
Next file: linux/include/asm-i386/boot.h
Previous file: linux/include/asm-alpha/semaphore.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Tue Apr 15 09:54:06 1997
- Orig file:
v2.1.34/linux/include/asm-alpha/spinlock.h
- Orig date:
Fri Apr 4 08:52:24 1997
diff -u --recursive --new-file v2.1.34/linux/include/asm-alpha/spinlock.h linux/include/asm-alpha/spinlock.h
@@ -34,10 +34,12 @@
typedef struct { unsigned long a[100]; } __dummy_lock_t;
#define __dummy_lock(lock) (*(__dummy_lock_t *)(lock))
-#define spin_unlock(lock) \
- __asm__ __volatile__( \
- "mb; stq $31,%0" \
- :"=m" (__dummy_lock(lock)))
+static inline void spin_unlock(spinlock_t * lock)
+{
+ __asm__ __volatile__(
+ "mb; stq $31,%0"
+ :"=m" (__dummy_lock(lock)));
+}
static inline void spin_lock(spinlock_t * lock)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov