diff options
author | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 2000-02-24 03:09:52 +0000 |
---|---|---|
committer | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 2000-02-24 03:09:52 +0000 |
commit | 467466b0d513d3e2fea6aa8581b1c3416fd0fa88 (patch) | |
tree | ca933ef49dff93e2362a0545aac212d299bd4817 /include | |
parent | 43ceb8f6fe08c18cc63e95e7192217e9ab1a748d (diff) |
Fix semaphore initialization.
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips64/semaphore.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-mips64/semaphore.h b/include/asm-mips64/semaphore.h index 626d2d2fd..0ca9689e6 100644 --- a/include/asm-mips64/semaphore.h +++ b/include/asm-mips64/semaphore.h @@ -1,4 +1,4 @@ -/* $Id: semaphore.h,v 1.4 1999/12/09 11:01:42 ralf Exp $ +/* $Id: semaphore.h,v 1.5 2000/02/18 00:24:49 ralf Exp $ * * License. See the file "COPYING" in the main directory of this archive * for more details. @@ -213,7 +213,8 @@ struct rw_semaphore { #endif #define __RWSEM_INITIALIZER(name,count) \ - { (count), 0, __WAIT_QUEUE_HEAD_INITIALIZER((name).wait), \ + { ATOMIC_INIT(count), 0, \ + __WAIT_QUEUE_HEAD_INITIALIZER((name).wait), \ __WAIT_QUEUE_HEAD_INITIALIZER((name).write_bias_wait) \ __SEM_DEBUG_INIT(name) __RWSEM_DEBUG_INIT } |