diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-01-13 16:37:07 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-01-13 16:37:07 -0500 |
commit | e2862f6a833ea26591c7feb755dc2e46909182a6 (patch) | |
tree | debbb0482bb717d08d5d543b1a772012690970e1 /include | |
parent | 43ecb9a33ba8c93ebbda81d48ca05f0d1bbf9056 (diff) |
[SERIAL] convert uart_state.sem to uart_state.mutex
semaphore to mutex conversion.
the conversion was generated via scripts, and the result was validated
automatically via a script as well.
build and boot tested.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/serial_core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index a8187c3c8a7b..ec351005bf9d 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
@@ -136,6 +136,7 @@ | |||
136 | #include <linux/spinlock.h> | 136 | #include <linux/spinlock.h> |
137 | #include <linux/sched.h> | 137 | #include <linux/sched.h> |
138 | #include <linux/tty.h> | 138 | #include <linux/tty.h> |
139 | #include <linux/mutex.h> | ||
139 | 140 | ||
140 | struct uart_port; | 141 | struct uart_port; |
141 | struct uart_info; | 142 | struct uart_info; |
@@ -284,7 +285,7 @@ struct uart_state { | |||
284 | struct uart_info *info; | 285 | struct uart_info *info; |
285 | struct uart_port *port; | 286 | struct uart_port *port; |
286 | 287 | ||
287 | struct semaphore sem; | 288 | struct mutex mutex; |
288 | }; | 289 | }; |
289 | 290 | ||
290 | #define UART_XMIT_SIZE PAGE_SIZE | 291 | #define UART_XMIT_SIZE PAGE_SIZE |