patch-2.1.30 linux/include/asm-sparc/semaphore.h
Next file: linux/include/asm-sparc/socket.h
Previous file: linux/include/asm-sparc/ross.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Mar 20 16:44:24 1997
- Orig file:
v2.1.29/linux/include/asm-sparc/semaphore.h
- Orig date:
Sun Jan 26 02:07:47 1997
diff -u --recursive --new-file v2.1.29/linux/include/asm-sparc/semaphore.h linux/include/asm-sparc/semaphore.h
@@ -3,6 +3,8 @@
/* Dinky, good for nothing, just barely irq safe, Sparc semaphores. */
+#ifdef __KERNEL__
+
#include <asm/atomic.h>
struct semaphore {
@@ -40,5 +42,7 @@
if (atomic_inc_return(&sem->count) <= 0)
__up(sem);
}
+
+#endif /* __KERNEL__ */
#endif /* !(_SPARC_SEMAPHORE_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov