From 9d0f38a4d2908f52ae266877515e72f13d4cd4ce Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Sun, 26 Nov 2006 18:56:56 -0500 Subject: [PATCH] --- yaml --- r: 41102 b: refs/heads/master c: c9c3b86f2ab79f7f6e87eb735f9cc4508b73fc48 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-parisc/semaphore.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index bfa2cb636dbd..9cac0a2157da 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b8e6ec865fd1d8838b6ce9516977b65e9f08f876 +refs/heads/master: c9c3b86f2ab79f7f6e87eb735f9cc4508b73fc48 diff --git a/trunk/include/asm-parisc/semaphore.h b/trunk/include/asm-parisc/semaphore.h index c9ee41cd0707..d45827a21f94 100644 --- a/trunk/include/asm-parisc/semaphore.h +++ b/trunk/include/asm-parisc/semaphore.h @@ -115,7 +115,8 @@ extern __inline__ int down_interruptible(struct semaphore * sem) */ extern __inline__ int down_trylock(struct semaphore * sem) { - int flags, count; + unsigned long flags; + int count; spin_lock_irqsave(&sem->sentry, flags); count = sem->count - 1; @@ -131,7 +132,8 @@ extern __inline__ int down_trylock(struct semaphore * sem) */ extern __inline__ void up(struct semaphore * sem) { - int flags; + unsigned long flags; + spin_lock_irqsave(&sem->sentry, flags); if (sem->count < 0) { __up(sem);