patch-2.4.20 linux-2.4.20/include/asm-m68k/semaphore.h
Next file: linux-2.4.20/include/asm-m68k/socket.h
Previous file: linux-2.4.20/include/asm-m68k/raw_io.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-m68k/semaphore.h
- Orig date:
Fri Aug 2 17:39:45 2002
diff -urN linux-2.4.19/include/asm-m68k/semaphore.h linux-2.4.20/include/asm-m68k/semaphore.h
@@ -182,6 +182,12 @@
: "memory");
}
+
+static inline int sem_getcount(struct semaphore *sem)
+{
+ return atomic_read(&sem->count);
+}
+
#endif /* __ASSEMBLY__ */
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)