* [patch] add console_use_vt check
@ 2005-02-24 10:20 Gerd Knorr
0 siblings, 0 replies; only message in thread
From: Gerd Knorr @ 2005-02-24 10:20 UTC (permalink / raw)
To: xen-devel
Hi,
Here is a trivial one-liner, one more place needs a check whenever
console_use_vt is set or not. Trapped into that while trying to make
the vt subsystem switchable in user mode linux as well.
cheers,
Gerd
Index: linux-2.6.10/drivers/char/tty_io.c
===================================================================
--- linux-2.6.10.orig/drivers/char/tty_io.c 2005-02-21 12:58:37.000000000 +0100
+++ linux-2.6.10/drivers/char/tty_io.c 2005-02-21 15:09:37.000000000 +0100
@@ -1790,7 +1790,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;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-24 10:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 10:20 [patch] add console_use_vt check Gerd Knorr
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.