freebsd-dev/sys/dev/vt
Jean-Sébastien Pédron 00c33067e1 vt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice
In several functions, vtbuf_putchar() in particular, the lock on vtbuf
is acquired twice:
    1. once by the said functions;
    2. once in vtbuf_dirty().

Now, vtbuf_dirty_locked() and vtbuf_dirty_cell_locked() allow to
acquire that lock only once.

This improves the input speed of vt(4). To measure the gain, a
50,000-lines file was displayed on the console using cat(1). The time
taken by cat(1) is reported below:
    o  On amd64, with vt_vga:
        - before: 1.0"
	- after:  0.5"
    o  On sparc64, with creator_vt:
        - before: 13.6"
	- after:  10.5"

MFC after:	1 week
2014-08-10 15:02:51 +00:00
..
colors
font Clarify statement on font origin 2014-06-06 18:32:05 +00:00
hw Retire vd_maskbitbltchr. The same functionality can be obtained by testing 2014-08-07 21:00:16 +00:00
logo
vt_buf.c vt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice 2014-08-10 15:02:51 +00:00
vt_consolectl.c Use a common tunable to choose between vt(4)/sc(4) 2014-06-27 17:50:33 +00:00
vt_core.c Retire vd_maskbitbltchr. The same functionality can be obtained by testing 2014-08-07 21:00:16 +00:00
vt_font.c Increase vt(9) max glyph data to 1MB for CJK fonts with many glyphs 2014-01-01 19:38:15 +00:00
vt_sysmouse.c Use a common tunable to choose between vt(4)/sc(4) 2014-06-27 17:50:33 +00:00
vt.h Retire vd_maskbitbltchr. The same functionality can be obtained by testing 2014-08-07 21:00:16 +00:00