mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
[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>
This commit is contained in:
parent
43ecb9a33b
commit
e2862f6a83
3 changed files with 36 additions and 36 deletions
|
@ -136,6 +136,7 @@
|
|||
#include <linux/spinlock.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/tty.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
struct uart_port;
|
||||
struct uart_info;
|
||||
|
@ -284,7 +285,7 @@ struct uart_state {
|
|||
struct uart_info *info;
|
||||
struct uart_port *port;
|
||||
|
||||
struct semaphore sem;
|
||||
struct mutex mutex;
|
||||
};
|
||||
|
||||
#define UART_XMIT_SIZE PAGE_SIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue