aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/vt/keyboard.c')
-rw-r--r--drivers/tty/vt/keyboard.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c
index 48cc6f25cfd3..9b4f60a6ab0e 100644
--- a/drivers/tty/vt/keyboard.c
+++ b/drivers/tty/vt/keyboard.c
@@ -310,7 +310,7 @@ static void put_queue(struct vc_data *vc, int ch)
310 310
311 if (tty) { 311 if (tty) {
312 tty_insert_flip_char(tty, ch, 0); 312 tty_insert_flip_char(tty, ch, 0);
313 con_schedule_flip(tty); 313 tty_schedule_flip(tty);
314 } 314 }
315} 315}
316 316
@@ -325,7 +325,7 @@ static void puts_queue(struct vc_data *vc, char *cp)
325 tty_insert_flip_char(tty, *cp, 0); 325 tty_insert_flip_char(tty, *cp, 0);
326 cp++; 326 cp++;
327 } 327 }
328 con_schedule_flip(tty); 328 tty_schedule_flip(tty);
329} 329}
330 330
331static void applkey(struct vc_data *vc, int key, char mode) 331static void applkey(struct vc_data *vc, int key, char mode)
@@ -586,7 +586,7 @@ static void fn_send_intr(struct vc_data *vc)
586 if (!tty) 586 if (!tty)
587 return; 587 return;
588 tty_insert_flip_char(tty, 0, TTY_BREAK); 588 tty_insert_flip_char(tty, 0, TTY_BREAK);
589 con_schedule_flip(tty); 589 tty_schedule_flip(tty);
590} 590}
591 591
592static void fn_scroll_forw(struct vc_data *vc) 592static void fn_scroll_forw(struct vc_data *vc)
@@ -1049,13 +1049,10 @@ static int kbd_update_leds_helper(struct input_handle *handle, void *data)
1049 */ 1049 */
1050int vt_get_leds(int console, int flag) 1050int vt_get_leds(int console, int flag)
1051{ 1051{
1052 unsigned long flags;
1053 struct kbd_struct * kbd = kbd_table + console; 1052 struct kbd_struct * kbd = kbd_table + console;
1054 int ret; 1053 int ret;
1055 1054
1056 spin_lock_irqsave(&kbd_event_lock, flags);
1057 ret = vc_kbd_led(kbd, flag); 1055 ret = vc_kbd_led(kbd, flag);
1058 spin_unlock_irqrestore(&kbd_event_lock, flags);
1059 1056
1060 return ret; 1057 return ret;
1061} 1058}