diff options
| author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2007-07-17 07:04:16 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:05 -0400 |
| commit | 67837f232d6d55be99d6e0dec4ea9bb8112840cd (patch) | |
| tree | 031713a5ce68712d3df3bab5eafdb52fdd829d04 /include/linux | |
| parent | 940408289842677cfe9e053a6c423bf3fb922560 (diff) | |
Use mutex instead of semaphore in CAPI 2.0 driver
The CAPI 2.0 driver uses a semaphore as mutex. Use the mutex API instead of
the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kernelcapi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernelcapi.h b/include/linux/kernelcapi.h index aea34e74c496..8c4350a9ed87 100644 --- a/include/linux/kernelcapi.h +++ b/include/linux/kernelcapi.h | |||
| @@ -64,7 +64,7 @@ struct capi20_appl { | |||
| 64 | unsigned long nrecvdatapkt; | 64 | unsigned long nrecvdatapkt; |
| 65 | unsigned long nsentctlpkt; | 65 | unsigned long nsentctlpkt; |
| 66 | unsigned long nsentdatapkt; | 66 | unsigned long nsentdatapkt; |
| 67 | struct semaphore recv_sem; | 67 | struct mutex recv_mtx; |
| 68 | struct sk_buff_head recv_queue; | 68 | struct sk_buff_head recv_queue; |
| 69 | struct work_struct recv_work; | 69 | struct work_struct recv_work; |
| 70 | int release_in_progress; | 70 | int release_in_progress; |
