patch-2.3.46 linux/include/linux/kbd_kern.h

Next file: linux/include/linux/kernelcapi.h
Previous file: linux/include/linux/joystick.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.45/linux/include/linux/kbd_kern.h linux/include/linux/kbd_kern.h
@@ -69,6 +69,8 @@
 extern unsigned char getledstate(void);
 extern void setledstate(struct kbd_struct *kbd, unsigned int led);
 
+extern struct tasklet_struct console_tasklet;
+
 extern int do_poke_blanked_console;
 
 extern void (*kbd_ledfunc)(unsigned int led);
@@ -76,13 +78,13 @@
 extern inline void show_console(void)
 {
 	do_poke_blanked_console = 1;
-	mark_bh(CONSOLE_BH);
+	tasklet_schedule(&console_tasklet);
 }
 
 extern inline void set_console(int nr)
 {
 	want_console = nr;
-	mark_bh(CONSOLE_BH);
+	tasklet_schedule(&console_tasklet);
 }
 
 extern inline void set_leds(void)
@@ -162,7 +164,7 @@
 extern inline void con_schedule_flip(struct tty_struct *t)
 {
 	queue_task(&t->flip.tqueue, &con_task_queue);
-	mark_bh(CONSOLE_BH);
+	tasklet_schedule(&console_tasklet);
 }
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)