Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105620
b: refs/heads/master
c: b552068
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and Matthew Wilcox committed Jul 24, 2008
1 parent 0917cd4 commit 091fdf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 2351ec533ed0dd56052ab96988d2161d5ecc8ed9
refs/heads/master: b552068999b0b05087c454e525b30b785c79dc9b
6 changes: 2 additions & 4 deletions trunk/include/linux/semaphore.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ struct semaphore {
.wait_list = LIST_HEAD_INIT((name).wait_list), \
}

#define __DECLARE_SEMAPHORE_GENERIC(name, count) \
struct semaphore name = __SEMAPHORE_INITIALIZER(name, count)

#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)
#define DECLARE_MUTEX(name) \
struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1)

static inline void sema_init(struct semaphore *sem, int val)
{
Expand Down

0 comments on commit 091fdf1

Please sign in to comment.