projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] TTY layer buffering revamp
[deliverable/linux.git]
/
drivers
/
serial
/
mpsc.c
diff --git
a/drivers/serial/mpsc.c
b/drivers/serial/mpsc.c
index 8f83e4007ecdf787fa9d890c37571afe41e2a43f..0ca83ac31d07a379eb95727ff8718392dd073c37 100644
(file)
--- a/
drivers/serial/mpsc.c
+++ b/
drivers/serial/mpsc.c
@@
-769,12
+769,12
@@
mpsc_rx_intr(struct mpsc_port_info *pi, struct pt_regs *regs)
bytes_in = be16_to_cpu(rxre->bytecnt);
/* Following use of tty struct directly is deprecated */
bytes_in = be16_to_cpu(rxre->bytecnt);
/* Following use of tty struct directly is deprecated */
- if (unlikely(
(tty->flip.count + bytes_in) >= TTY_FLIPBUF_SIZE))
{
+ if (unlikely(
tty_buffer_request_room(tty, bytes_in) < bytes_in))
{
if (tty->low_latency)
tty_flip_buffer_push(tty);
/*
if (tty->low_latency)
tty_flip_buffer_push(tty);
/*
- * If this failed then we will throw awa the bytes
- * but mst do so to clear interrupts.
+ * If this failed then we will throw awa
y
the bytes
+ * but m
u
st do so to clear interrupts.
*/
}
*/
}
This page took
0.024774 seconds
and
5
git commands to generate.