]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/semaphore.h
[ARM] 4756/1: [AT91] Makefile cleanup
[linux-2.6-omap-h63xx.git] / include / asm-arm / semaphore.h
index 71ca7d412687f9bb0e1a2c2e61a8857e96cec6f5..1c8b441f89e300c6c46dda9bcf6c707a38ceca66 100644 (file)
@@ -28,7 +28,6 @@ struct semaphore {
        struct semaphore name = __SEMAPHORE_INIT(name,count)
 
 #define DECLARE_MUTEX(name)            __DECLARE_SEMAPHORE_GENERIC(name,1)
-#define DECLARE_MUTEX_LOCKED(name)     __DECLARE_SEMAPHORE_GENERIC(name,0)
 
 static inline void sema_init(struct semaphore *sem, int val)
 {
@@ -47,11 +46,6 @@ static inline void init_MUTEX_LOCKED(struct semaphore *sem)
        sema_init(sem, 0);
 }
 
-static inline int sema_count(struct semaphore *sem)
-{
-       return atomic_read(&sem->count);
-}
-
 /*
  * special register calling convention
  */