mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
serial: core: Remove extra locking in uart_write()
uart_start() only claims the port->lock to call __uart_start(), which does the actual processing. Eliminate the extra acquire/release in uart_write(); call __uart_start() directly with port->lock already held. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2b702b9b68
commit
64dbee3105
@ -537,9 +537,10 @@ static int uart_write(struct tty_struct *tty,
|
||||
count -= c;
|
||||
ret += c;
|
||||
}
|
||||
|
||||
__uart_start(tty);
|
||||
spin_unlock_irqrestore(&port->lock, flags);
|
||||
|
||||
uart_start(tty);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user