diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-01-03 09:53:07 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-16 01:43:15 -0500 |
commit | 6732c8bb8671acbdac6cdc93dd72ddd581dd5e25 (patch) | |
tree | 6c70977ee03cddd4211b8f775c331b41532ed5da /drivers/tty/tty_buffer.c | |
parent | 2e124b4a390ca85325fae75764bef92f0547fa25 (diff) |
TTY: switch tty_schedule_flip
Now, we start converting tty buffer functions to actually use
tty_port. This will allow us to get rid of the need of tty in many
call sites. Only tty_port will needed and hence no more
tty_port_tty_get in those paths.
This is the last one: tty_schedule_flip
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
-rw-r--r-- | drivers/tty/tty_buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index b6efacadf23b..d6969f6e4c43 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c | |||
@@ -349,7 +349,7 @@ EXPORT_SYMBOL(tty_insert_flip_string_flags); | |||
349 | 349 | ||
350 | /** | 350 | /** |
351 | * tty_schedule_flip - push characters to ldisc | 351 | * tty_schedule_flip - push characters to ldisc |
352 | * @tty: tty to push from | 352 | * @port: tty port to push from |
353 | * | 353 | * |
354 | * Takes any pending buffers and transfers their ownership to the | 354 | * Takes any pending buffers and transfers their ownership to the |
355 | * ldisc side of the queue. It then schedules those characters for | 355 | * ldisc side of the queue. It then schedules those characters for |
@@ -360,11 +360,11 @@ EXPORT_SYMBOL(tty_insert_flip_string_flags); | |||
360 | * Locking: Takes port->buf.lock | 360 | * Locking: Takes port->buf.lock |
361 | */ | 361 | */ |
362 | 362 | ||
363 | void tty_schedule_flip(struct tty_struct *tty) | 363 | void tty_schedule_flip(struct tty_port *port) |
364 | { | 364 | { |
365 | struct tty_bufhead *buf = &tty->port->buf; | 365 | struct tty_bufhead *buf = &port->buf; |
366 | unsigned long flags; | 366 | unsigned long flags; |
367 | WARN_ON(tty->port->low_latency); | 367 | WARN_ON(port->low_latency); |
368 | 368 | ||
369 | spin_lock_irqsave(&buf->lock, flags); | 369 | spin_lock_irqsave(&buf->lock, flags); |
370 | if (buf->tail != NULL) | 370 | if (buf->tail != NULL) |