atyfb: set FBINFO_READS_FAST
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Jan 2014 19:40:02 +0000 (14:40 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 11 Feb 2014 13:01:04 +0000 (15:01 +0200)
Set FBINFO_READS_FAST so that the console code uses scrolling instead of
rewriting. This improves scrolling speed.

A time to do ls -la /usr/bin:
original patched
32bpp 4.9 3.6
24bpp 4.9 2.9
16bpp 4.9 2.1
8bpp 4.9 1.7

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/aty/atyfb_base.c

index 5d7672cf2c70df2e1bef31110bda346a4d65c6a0..c3d0074a32db750c01d4d0ed4e72153499c86c69 100644 (file)
@@ -2653,7 +2653,8 @@ static int aty_init(struct fb_info *info)
                      FBINFO_HWACCEL_IMAGEBLIT |
                      FBINFO_HWACCEL_FILLRECT  |
                      FBINFO_HWACCEL_COPYAREA  |
-                     FBINFO_HWACCEL_YPAN;
+                     FBINFO_HWACCEL_YPAN      |
+                     FBINFO_READS_FAST;
 
 #ifdef CONFIG_PMAC_BACKLIGHT
        if (M64_HAS(G3_PB_1_1) && of_machine_is_compatible("PowerBook1,1")) {