From: James S. <jsi...@us...> - 2001-12-08 00:54:04
|
Update of /cvsroot/linuxconsole/ruby/linux/drivers/char In directory usw-pr-cvs1:/tmp/cvs-serv23193/drivers/char Modified Files: tty_io.c Log Message: Almost done. Now to make the lock shared between the console layer and the tty layer. Index: tty_io.c =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/char/tty_io.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- tty_io.c 2001/12/07 00:17:55 1.40 +++ tty_io.c 2001/12/08 00:54:01 1.41 @@ -2078,7 +2078,9 @@ tty_drivers = driver; //if (!(driver->flags & TTY_DRIVER_CONSOLE)) - // init_MUTEX(&driver->tty_lock); + + driver->tty_lock = kmalloc(sizeof(struct semaphore), GFP_KERNEL); + init_MUTEX(driver->tty_lock); if ( !(driver->flags & TTY_DRIVER_NO_DEVFS) ) { for(i = 0; i < driver->num; i++) |