diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-01-03 09:53:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-16 01:23:16 -0500 |
commit | d6c53c0e9bd0a83f9f9ddbc9fd80141a54d83896 (patch) | |
tree | 2b749451607e0a52d97d61af984e7aa2e3818067 /arch/mn10300/kernel | |
parent | 05c7cd39907184328f48d3e7899f9cdd653ad336 (diff) |
TTY: move low_latency to tty_port
One point is to have less places where we actually need tty pointer.
The other is that low_latency is bound to buffer processing and
buffers are now in tty_port. So it makes sense to move low_latency to
tty_port too.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mn10300/kernel')
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mn10300/kernel/mn10300-serial.c b/arch/mn10300/kernel/mn10300-serial.c index 54ef40ceaaed..ae61bd692b4b 100644 --- a/arch/mn10300/kernel/mn10300-serial.c +++ b/arch/mn10300/kernel/mn10300-serial.c | |||
@@ -537,7 +537,7 @@ static void mn10300_serial_receive_interrupt(struct mn10300_serial_port *port) | |||
537 | count = CIRC_CNT(port->rx_inp, port->rx_outp, MNSC_BUFFER_SIZE); | 537 | count = CIRC_CNT(port->rx_inp, port->rx_outp, MNSC_BUFFER_SIZE); |
538 | count = tty_buffer_request_room(port, count); | 538 | count = tty_buffer_request_room(port, count); |
539 | if (count == 0) { | 539 | if (count == 0) { |
540 | if (!tty->low_latency) | 540 | if (!port->low_latency) |
541 | tty_flip_buffer_push(tty); | 541 | tty_flip_buffer_push(tty); |
542 | return; | 542 | return; |
543 | } | 543 | } |
@@ -546,7 +546,7 @@ try_again: | |||
546 | /* pull chars out of the hat */ | 546 | /* pull chars out of the hat */ |
547 | ix = ACCESS_ONCE(port->rx_outp); | 547 | ix = ACCESS_ONCE(port->rx_outp); |
548 | if (CIRC_CNT(port->rx_inp, ix, MNSC_BUFFER_SIZE) == 0) { | 548 | if (CIRC_CNT(port->rx_inp, ix, MNSC_BUFFER_SIZE) == 0) { |
549 | if (push && !tty->low_latency) | 549 | if (push && !port->low_latency) |
550 | tty_flip_buffer_push(tty); | 550 | tty_flip_buffer_push(tty); |
551 | return; | 551 | return; |
552 | } | 552 | } |
@@ -678,7 +678,7 @@ insert: | |||
678 | 678 | ||
679 | count--; | 679 | count--; |
680 | if (count <= 0) { | 680 | if (count <= 0) { |
681 | if (!tty->low_latency) | 681 | if (!port->low_latency) |
682 | tty_flip_buffer_push(tty); | 682 | tty_flip_buffer_push(tty); |
683 | return; | 683 | return; |
684 | } | 684 | } |