diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-23 12:00:44 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 16:38:14 +0100 |
commit | 81861d78c9edf9a9b03a9ba1f5b242d658f16832 (patch) | |
tree | 9bd32a48b9869fb809c894e560bb9ee807cf7ad1 /include | |
parent | [PATCH] sem2mutex: UDF (diff) | |
download | linux-81861d78c9edf9a9b03a9ba1f5b242d658f16832.tar.xz linux-81861d78c9edf9a9b03a9ba1f5b242d658f16832.zip |
[PATCH] sem2mutex: serial ->port_write_mutex
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/generic_serial.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/generic_serial.h b/include/linux/generic_serial.h index 0abe9d9a0069..652611a4bdcd 100644 --- a/include/linux/generic_serial.h +++ b/include/linux/generic_serial.h @@ -12,6 +12,8 @@ #ifndef GENERIC_SERIAL_H #define GENERIC_SERIAL_H +#include <linux/mutex.h> + struct real_driver { void (*disable_tx_interrupts) (void *); void (*enable_tx_interrupts) (void *); @@ -34,7 +36,7 @@ struct gs_port { int xmit_head; int xmit_tail; int xmit_cnt; - struct semaphore port_write_sem; + struct mutex port_write_mutex; int flags; wait_queue_head_t open_wait; wait_queue_head_t close_wait; |