git: MPSAFE - TTY & related drivers

Alex Hornung alexh at crater.dragonflybsd.org
Fri Aug 27 17:03:38 PDT 2010


commit 22ff886e5769d1e8d4bf7faa7bdb9f608ede1714
Author: Alex Hornung <ahornung at gmail.com>
Date:   Sat Aug 28 00:33:26 2010 +0100

    MPSAFE - TTY & related drivers
    
    * Put kern/tty_* under the tty_token (and acquire the proc_token where
      needed).
    
    * MPSAFE all related drivers (users of kbdsw, linesw and vidsw) with the
      same tty_token.
    
    * NOTE: syscons.c and scvgarndr.c are not really under this new lock
      yet as some really strange hangs appear. Some are related to the
      cursor drawing (which stalls the  machine if a token is held) and
      others are in some other syscons.c functions.

Summary of changes:
 sys/bus/isa/vga_isa.c                      |    5 +
 sys/dev/misc/atkbd/atkbd_isa.c             |   14 +-
 sys/dev/misc/atkbdc_layer/atkbdc_isa.c     |   28 ++-
 sys/dev/misc/dcons/dcons_os.c              |   50 +++-
 sys/dev/misc/kbd/atkbd.c                   |  185 +++++++++--
 sys/dev/misc/kbd/atkbdc.c                  |    5 +
 sys/dev/misc/kbd/kbd.c                     |  222 +++++++++++--
 sys/dev/misc/kbdmux/kbdmux.c               |  125 ++++++--
 sys/dev/misc/nmdm/nmdm.c                   |   59 +++-
 sys/dev/misc/snp/snp.c                     |   94 +++++-
 sys/dev/misc/syscons/blank/blank_saver.c   |   18 +-
 sys/dev/misc/syscons/dragon/dragon_saver.c |    1 +
 sys/dev/misc/syscons/fade/fade_saver.c     |   12 +-
 sys/dev/misc/syscons/fire/fire_saver.c     |    1 +
 sys/dev/misc/syscons/fred/fred_saver.c     |   26 ++-
 sys/dev/misc/syscons/green/green_saver.c   |   18 +-
 sys/dev/misc/syscons/logo/logo_saver.c     |    1 +
 sys/dev/misc/syscons/rain/rain_saver.c     |    1 +
 sys/dev/misc/syscons/scvgarndr.c           |   34 ++-
 sys/dev/misc/syscons/scvidctl.c            |  125 ++++++--
 sys/dev/misc/syscons/snake/snake_saver.c   |   21 +-
 sys/dev/misc/syscons/star/star_saver.c     |   13 +-
 sys/dev/misc/syscons/syscons.c             |  490 ++++++++++++++++++++++++----
 sys/dev/misc/syscons/sysmouse.c            |   58 +++-
 sys/dev/misc/syscons/warp/warp_saver.c     |    1 +
 sys/dev/serial/cy/cy.c                     |  138 +++++++-
 sys/dev/serial/cy/cy_pci.c                 |    2 +-
 sys/dev/serial/dgb/dgm.c                   |  109 ++++++-
 sys/dev/serial/digi/digi.c                 |  122 ++++++-
 sys/dev/serial/digi/digi_pci.c             |    2 +-
 sys/dev/serial/rc/rc.c                     |  106 +++++-
 sys/dev/serial/rp/rp.c                     |  112 ++++++-
 sys/dev/serial/si/si.c                     |   83 +++++-
 sys/dev/serial/si/si_eisa.c                |    2 +-
 sys/dev/serial/si/si_isa.c                 |    2 +-
 sys/dev/serial/si/si_pci.c                 |    2 +-
 sys/dev/serial/sio/sio.c                   |  196 ++++++++++--
 sys/dev/usbmisc/ucom/ucom.c                |  115 ++++++-
 sys/dev/usbmisc/ukbd/ukbd.c                |  239 +++++++++++---
 sys/dev/video/fb/bmp/splash_bmp.c          |   23 ++-
 sys/dev/video/fb/fb.c                      |   28 ++-
 sys/dev/video/fb/fbreg.h                   |   16 +-
 sys/dev/video/fb/pcx/splash_pcx.c          |    1 +
 sys/dev/video/fb/vga.c                     |   23 ++
 sys/dev/video/i386/vesa/vesa.c             |  236 +++++++++++---
 sys/kern/tty.c                             |  325 ++++++++++++++++---
 sys/kern/tty_conf.c                        |    6 +
 sys/kern/tty_pty.c                         |  184 +++++++++--
 sys/kern/tty_subr.c                        |   52 +++
 sys/kern/tty_tty.c                         |   15 +-
 sys/net/ppp_layer/ppp_tty.c                |   74 ++++-
 sys/net/sl/if_sl.c                         |   58 +++-
 sys/netgraph/tty/ng_tty.c                  |   34 ++-
 sys/netgraph7/bluetooth/drivers/h4/ng_h4.c |   32 ++-
 sys/netgraph7/ng_tty.c                     |   31 ++-
 sys/platform/pc32/gnu/isa/dgb.c            |  100 +++++-
 sys/platform/vkernel/platform/console.c    |   45 +++-
 sys/platform/vkernel64/platform/console.c  |   41 ++-
 58 files changed, 3591 insertions(+), 570 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/22ff886e5769d1e8d4bf7faa7bdb9f608ede1714


-- 
DragonFly BSD source repository





More information about the Commits mailing list