aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmem.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2005-09-09 16:10:04 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 17:03:41 -0400
commit829e79b680210c4f4de435af6e1f90451922fc7d (patch)
treecb8d46347a64f4c5673fb7e5dee55a8078ff8e80 /drivers/video/fbmem.c
parentba44cd2d8abc3271a608b42cdbf55e1e575e2ba5 (diff)
[PATCH] fbcon: Break up bit_putcs into its component functions
The function bit_putcs() in drivers/video/console/bitblit.c is becoming large. Break it up into its component functions (bit_putcs_unaligned and bit_putcs_aligned). Incorporated fb_pad_aligned_buffer() optimization by Roman Zippel. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r--drivers/video/fbmem.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 71b55070bdb9..70be7009f8af 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -90,15 +90,7 @@ EXPORT_SYMBOL(fb_get_color_depth);
90 */ 90 */
91void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height) 91void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height)
92{ 92{
93 int i, j; 93 __fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, height);
94
95 for (i = height; i--; ) {
96 /* s_pitch is a few bytes at the most, memcpy is suboptimal */
97 for (j = 0; j < s_pitch; j++)
98 dst[j] = src[j];
99 src += s_pitch;
100 dst += d_pitch;
101 }
102} 94}
103EXPORT_SYMBOL(fb_pad_aligned_buffer); 95EXPORT_SYMBOL(fb_pad_aligned_buffer);
104 96