diff options
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 19ee635eeb..626cdc8366 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/fcntl.h> | 26 | #include <linux/fcntl.h> |
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/capability.h> | ||
29 | #include <linux/console.h> | 30 | #include <linux/console.h> |
30 | #include <linux/module.h> | 31 | #include <linux/module.h> |
31 | #include <linux/serial.h> | 32 | #include <linux/serial.h> |
@@ -107,7 +108,6 @@ static struct async_struct *IRQ_ports[NR_IRQS]; | |||
107 | static struct console *console; | 108 | static struct console *console; |
108 | 109 | ||
109 | static unsigned char *tmp_buf; | 110 | static unsigned char *tmp_buf; |
110 | static DECLARE_MUTEX(tmp_buf_sem); | ||
111 | 111 | ||
112 | extern struct console *console_drivers; /* from kernel/printk.c */ | 112 | extern struct console *console_drivers; /* from kernel/printk.c */ |
113 | 113 | ||
@@ -166,15 +166,9 @@ static void receive_chars(struct tty_struct *tty, struct pt_regs *regs) | |||
166 | } | 166 | } |
167 | } | 167 | } |
168 | seen_esc = 0; | 168 | seen_esc = 0; |
169 | if (tty->flip.count >= TTY_FLIPBUF_SIZE) break; | ||
170 | 169 | ||
171 | *tty->flip.char_buf_ptr = ch; | 170 | if (tty_insert_flip_char(tty, ch, TTY_NORMAL) == 0) |
172 | 171 | break; | |
173 | *tty->flip.flag_buf_ptr = 0; | ||
174 | |||
175 | tty->flip.flag_buf_ptr++; | ||
176 | tty->flip.char_buf_ptr++; | ||
177 | tty->flip.count++; | ||
178 | } | 172 | } |
179 | tty_flip_buffer_push(tty); | 173 | tty_flip_buffer_push(tty); |
180 | } | 174 | } |