X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-arm%2Fsemaphore.h;h=1c8b441f89e300c6c46dda9bcf6c707a38ceca66;hb=b7b272a8826a2332f689853792eb8c42477fec85;hp=71ca7d412687f9bb0e1a2c2e61a8857e96cec6f5;hpb=1480d0a31db62b9803f829cc0e5cc71935ffe3cc;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-arm/semaphore.h b/include/asm-arm/semaphore.h index 71ca7d41268..1c8b441f89e 100644 --- a/include/asm-arm/semaphore.h +++ b/include/asm-arm/semaphore.h @@ -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 */