]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/kbd_kern.h
[SK_BUFF]: Introduce skb_set_network_header
[linux-2.6-omap-h63xx.git] / include / linux / kbd_kern.h
index 45f625d7d0b2aab6ca2ee0e99dda5f0cd03109e3..506ad20c18f8736b355530cc01fa91ca149fe322 100644 (file)
@@ -75,7 +75,7 @@ extern int do_poke_blanked_console;
 
 extern void (*kbd_ledfunc)(unsigned int led);
 
-extern void set_console(int nr);
+extern int set_console(int nr);
 extern void schedule_console_callback(void);
 
 static inline void set_leds(void)
@@ -135,6 +135,8 @@ static inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag)
 
 #define U(x) ((x) ^ 0xf000)
 
+#define BRL_UC_ROW 0x2800
+
 /* keyboard.c */
 
 struct console;
@@ -151,7 +153,12 @@ extern unsigned int keymap_count;
 
 static inline void con_schedule_flip(struct tty_struct *t)
 {
-       schedule_work(&t->buf.work);
+       unsigned long flags;
+       spin_lock_irqsave(&t->buf.lock, flags);
+       if (t->buf.tail != NULL)
+               t->buf.tail->commit = t->buf.tail->used;
+       spin_unlock_irqrestore(&t->buf.lock, flags);
+       schedule_delayed_work(&t->buf.work, 0);
 }
 
 #endif