/* Locking: tty buffer lock. Driver locks in low latency mode.  */
void tty_flip_buffer_push(struct tty_struct *tty)
/* Locking: tty buffer lock. Driver locks in low latency mode.  */
void tty_flip_buffer_push(struct tty_struct *tty)
{
	unsigned long flags;
	spin_lock_irqsave(&tty->buf.lock, flags);
	if (tty->buf.tail != NULL)
		tty->buf.tail->commit = tty->buf.tail->used;
	spin_unlock_irqrestore(&tty->buf.lock, flags);
	if (tty->low_latency)
		flush_to_ldisc(&tty->buf.work.work);
	else
		schedule_delayed_work(&tty->buf.work, 1);
}