Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41102
b: refs/heads/master
c: c9c3b86
h: refs/heads/master
v: v3
  • Loading branch information
Kyle McMartin authored and Linus Torvalds committed Nov 27, 2006
1 parent 5123c3a commit 9d0f38a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8e6ec865fd1d8838b6ce9516977b65e9f08f876
refs/heads/master: c9c3b86f2ab79f7f6e87eb735f9cc4508b73fc48
6 changes: 4 additions & 2 deletions trunk/include/asm-parisc/semaphore.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 9d0f38a

Please sign in to comment.