/* When this routine is called from the timer then we flush the temporary write buffer.  */
static void sclp_tty_timeout(unsigned long data)
/* When this routine is called from the timer then we flush the temporary write buffer.  */
static void sclp_tty_timeout(unsigned long data)
{
	unsigned long flags;
	struct sclp_buffer *buf;
	spin_lock_irqsave(&sclp_tty_lock, flags);
	buf = sclp_ttybuf;
	sclp_ttybuf = NULL;
	spin_unlock_irqrestore(&sclp_tty_lock, flags);
	if (buf != NULL) {
		__sclp_ttybuf_emit(buf);
	}
}