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
..
2014-04-07 20:44:00 +00:00
2014-08-05 00:07:21 +00:00
2014-04-17 12:22:08 +00:00
2014-06-14 12:26:12 +00:00
2014-06-28 17:36:18 +00:00
2014-02-06 13:28:06 +00:00
2014-07-07 00:27:09 +00:00