[PATCH] TTY layer buffering revamp
[deliverable/linux.git] / drivers / serial / sn_console.c
index 313f9df24a2de97426df92de3c439af9d07dda91..5468e5a767e21bf9bcbf951f21b05dbbdb17b3b7 100644 (file)
@@ -519,11 +519,7 @@ sn_receive_chars(struct sn_cons_port *port, struct pt_regs *regs,
 
                /* record the character to pass up to the tty layer */
                if (tty) {
-                       *tty->flip.char_buf_ptr = ch;
-                       *tty->flip.flag_buf_ptr = TTY_NORMAL;
-                       tty->flip.char_buf_ptr++;
-                       tty->flip.count++;
-                       if (tty->flip.count == TTY_FLIPBUF_SIZE)
+                       if(tty_insert_flip_char(tty, ch, TTY_NORMAL) == 0)
                                break;
                }
                port->sc_port.icount.rx++;
This page took 0.024423 seconds and 5 git commands to generate.