patch-2.1.37 linux/include/asm-m68k/spinlock.h
Next file: linux/include/asm-mips/processor.h
Previous file: linux/include/asm-m68k/softirq.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon May 12 10:35:43 1997
- Orig file:
v2.1.36/linux/include/asm-m68k/spinlock.h
- Orig date:
Wed Apr 23 19:01:28 1997
diff -u --recursive --new-file v2.1.36/linux/include/asm-m68k/spinlock.h linux/include/asm-m68k/spinlock.h
@@ -49,26 +49,3 @@
#define write_unlock_irqrestore(lock, flags) restore_flags(flags)
#endif
-#ifndef __M68K_SPINLOCK_H
-#define __M68K_SPINLOCK_H
-
-/*
- * We don't do SMP on the m68k .... at least not yet.
- */
-
-typedef struct { } spinlock_t;
-#define SPIN_LOCK_UNLOCKED { }
-
-#define spin_lock_init(lock) do { } while(0)
-#define spin_lock(lock) do { } while(0)
-#define spin_trylock(lock) do { } while(0)
-#define spin_unlock(lock) do { } while(0)
-#define spin_lock_irq(lock) cli()
-#define spin_unlock_irq(lock) sti()
-
-#define spin_lock_irqsave(lock, flags) \
- do { save_flags(flags); cli(); } while (0)
-#define spin_unlock_irqrestore(lock, flags) \
- restore_flags(flags)
-
-#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov