bitkeeper revision 1.1159.258.11 (421db5das21KZ5OM9VgBIYQNaZthng)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 24 Feb 2005 11:09:14 +0000 (11:09 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 24 Feb 2005 11:09:14 +0000 (11:09 +0000)
Fix console_use_vt feature that makes VT switchable at run time in
Linux.
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
linux-2.6.10-xen-sparse/drivers/char/tty_io.c

index 636083c08ab2f2ef99cd92513bae004a8deb0e7f..2df07c86192941774ae06ae258af069911c89b23 100644 (file)
@@ -1772,7 +1772,7 @@ retry_open:
                goto got_driver;
        }
 #ifdef CONFIG_VT
-       if (device == MKDEV(TTY_MAJOR,0)) {
+       if (console_use_vt && (device == MKDEV(TTY_MAJOR,0))) {
                extern int fg_console;
                extern struct tty_driver *console_driver;
                driver = console_driver;