]> asedeno.scripts.mit.edu Git - linux.git/commit
mach64: optimize wait_for_fifo
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 8 Oct 2018 10:57:35 +0000 (12:57 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 8 Oct 2018 10:57:35 +0000 (12:57 +0200)
commit01c40a17249727472da3f52e2f344cc2cc4138c4
tree8ec4aa2139d8f3a2bda32432481f8fef0388da83
parentc09bcc91bb94ed91f1391bffcbe294963d605732
mach64: optimize wait_for_fifo

This is a simple optimization for fifo waiting that improves scrolling
performance by 5%. If the queue has more free entries that what we
consume, we can skip the costly register read next time.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Ville Syrjälä <syrjala@sci.fi>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/aty/atyfb.h
drivers/video/fbdev/aty/mach64_accel.c