diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-11-17 01:45:44 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-11-17 01:45:44 +0000 |
commit | 0c6e7b6bd8049d916a117966afc2758795739055 (patch) | |
tree | dd9f016eb9b88afb59ba89978880c7e21e662ed8 | |
parent | 37307e172b6f05fd49540704a50574ae2fec1b13 (diff) |
The granted member of the semaphore must be unsigned long.
-rw-r--r-- | include/asm-mips/semaphore.h | 5 | ||||
-rw-r--r-- | include/asm-mips64/semaphore.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-mips/semaphore.h b/include/asm-mips/semaphore.h index 9be99be4b..19fb03efc 100644 --- a/include/asm-mips/semaphore.h +++ b/include/asm-mips/semaphore.h @@ -1,5 +1,4 @@ -/* $Id: semaphore.h,v 1.12 1999/12/08 22:05:10 harald Exp $ - * +/* * SMP- and interrupt-safe semaphores.. * * This file is subject to the terms and conditions of the GNU General Public @@ -215,7 +214,7 @@ struct rw_semaphore { atomic_t count; /* bit 0 means read bias granted; bit 1 means write bias granted. */ - unsigned granted; + unsigned long granted; wait_queue_head_t wait; wait_queue_head_t write_bias_wait; #if WAITQUEUE_DEBUG diff --git a/include/asm-mips64/semaphore.h b/include/asm-mips64/semaphore.h index 2e164ab33..67c7b8772 100644 --- a/include/asm-mips64/semaphore.h +++ b/include/asm-mips64/semaphore.h @@ -195,7 +195,7 @@ struct rw_semaphore { atomic_t count; /* bit 0 means read bias granted; bit 1 means write bias granted. */ - unsigned granted; + unsigned long granted; wait_queue_head_t wait; wait_queue_head_t write_bias_wait; #if WAITQUEUE_DEBUG |