diff --git a/sys/dev/vt/vt_buf.c b/sys/dev/vt/vt_buf.c index 0b078ec..dd729a4 100644 --- a/sys/dev/vt/vt_buf.c +++ b/sys/dev/vt/vt_buf.c @@ -231,7 +231,6 @@ static inline void vtbuf_dirty(struct vt_buf *vb, const term_rect_t *area) { - VTBUF_LOCK(vb); if (vb->vb_dirtyrect.tr_begin.tp_row > area->tr_begin.tp_row) vb->vb_dirtyrect.tr_begin.tp_row = area->tr_begin.tp_row; if (vb->vb_dirtyrect.tr_begin.tp_col > area->tr_begin.tp_col) @@ -244,7 +243,6 @@ vtbuf_dirty(struct vt_buf *vb, const term_rect_t *area) vtbuf_dirty_axis(area->tr_begin.tp_row, area->tr_end.tp_row); vb->vb_dirtymask.vbm_col |= vtbuf_dirty_axis(area->tr_begin.tp_col, area->tr_end.tp_col); - VTBUF_UNLOCK(vb); } static inline void @@ -271,11 +269,9 @@ void vtbuf_undirty(struct vt_buf *vb, term_rect_t *r, struct vt_bufmask *m) { - VTBUF_LOCK(vb); *r = vb->vb_dirtyrect; *m = vb->vb_dirtymask; vtbuf_make_undirty(vb); - VTBUF_UNLOCK(vb); } void @@ -513,9 +509,7 @@ vtbuf_putchar(struct vt_buf *vb, const term_pos_t *p, term_char_t c) row = vb->vb_rows[(vb->vb_curroffset + p->tp_row) % VTBUF_MAX_HEIGHT(vb)]; if (row[p->tp_col] != c) { - VTBUF_LOCK(vb); row[p->tp_col] = c; - VTBUF_UNLOCK(vb); vtbuf_dirty_cell(vb, p); } }