patch-2.4.20 linux-2.4.20/include/asm-cris/semaphore.h
Next file: linux-2.4.20/include/asm-cris/termios.h
Previous file: linux-2.4.20/include/asm-cris/rtc.h
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Thu Nov 28 15:53:15 2002
-  Orig file: 
linux-2.4.19/include/asm-cris/semaphore.h
-  Orig date: 
Wed Jul  4 11:50:39 2001
diff -urN linux-2.4.19/include/asm-cris/semaphore.h linux-2.4.20/include/asm-cris/semaphore.h
@@ -158,4 +158,9 @@
 	}
 }
 
+static inline int sem_getcount(struct semaphore *sem)
+{
+	return sem->count;
+}
+
 #endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)