patch-2.3.46 linux/drivers/char/vt.c
Next file: linux/drivers/char/zr36120_mem.c
Previous file: linux/drivers/char/vme_scc.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Mon Feb 14 15:31:14 2000
- Orig file:
v2.3.45/linux/drivers/char/vt.c
- Orig date:
Thu Feb 10 17:11:08 2000
diff -u --recursive --new-file v2.3.45/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -22,6 +22,7 @@
#include <linux/malloc.h>
#include <linux/major.h>
#include <linux/fs.h>
+#include <linux/console.h>
#include <asm/io.h>
#include <asm/uaccess.h>
@@ -804,12 +805,10 @@
* When we actually do the console switch,
* make sure we are atomic with respect to
* other console switches..
- *
- * Damn! Was it difficult to make this clean?
*/
- disable_bh(CONSOLE_BH);
+ spin_lock_irq(&console_lock);
complete_change_console(newvt);
- enable_bh(CONSOLE_BH);
+ spin_unlock_irq(&console_lock);
}
}
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])