]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] framebuffer: bit_putcs() optimization for 8x* fonts
authorKnut Petersen <Knut_Petersen@t-online.de>
Fri, 9 Sep 2005 20:04:59 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:58:02 +0000 (13:58 -0700)
commitc5eb5c1ea919f3f717236c5d0892f9c37f19de37
tree33e48218a7a49576120876a09ead5f1366576861
parent9fa68eae9f8291a98bfe00b94b78f72eb253165a
[PATCH] framebuffer: bit_putcs() optimization for 8x* fonts

This trivial patch gives a performance boost to the framebuffer console

Constructing the bitmaps that are given to the bitblit functions of the
framebuffer drivers is time consuming.  Here we avoide a call to the slow
fb_pad_aligned_buffer().  The patch replaces that call with a simple but
much more efficient bytewise copy.

The kernel spends a significant time at this place if you use 8x* fonts.
Every pixel displayed on your screen is prepared here.

Some benchmark results:

Displaying a file of 2000 lines with 160 characters each takes 889 ms
system time using cyblafb on my system (I´m using a 1280x1024 video mode,
resulting in a 160x64 character console)

Displaying the same file with the enclosed patch applied to 2.6.13 only
takes 760 ms system time, saving 129 ms or 14.5%.

Font widths other than 8 are not affected.

The advantage and correctness of this patch should be obvious.

Signed-off-by: Knut Petersen <Knut_Petersen@t-online.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/bitblit.c