aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmem.c
diff options
context:
space:
mode:
authorJames Simmons <jsimmons@pentafluge.infradead.org>2005-06-21 20:17:07 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 22:07:41 -0400
commitf1ab5dac251bb4514607918b0019a3b3f5f5fb48 (patch)
tree65d7912b1d407b1dc12b9e2f67b4311a153a41e5 /drivers/video/fbmem.c
parent303b86d9913eca0cbfc3c5cb41e7006f6e13b755 (diff)
[PATCH] fbdev: stack reduction
Shrink the stack when calling the drawing alignment functions. Signed-off-by: James Simmons <jsimmons@www.infradead.org> Cc: "Antonino A. Daplas" <adaplas@hotpop.com> 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.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 78907a873493..6f871a8b9058 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -78,9 +78,7 @@ EXPORT_SYMBOL(fb_get_color_depth);
78/* 78/*
79 * Data padding functions. 79 * Data padding functions.
80 */ 80 */
81void fb_sysmove_buf_aligned(struct fb_info *info, struct fb_pixmap *buf, 81void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height)
82 u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch,
83 u32 height)
84{ 82{
85 int i; 83 int i;
86 84
@@ -90,12 +88,10 @@ void fb_sysmove_buf_aligned(struct fb_info *info, struct fb_pixmap *buf,
90 dst += d_pitch; 88 dst += d_pitch;
91 } 89 }
92} 90}
93EXPORT_SYMBOL(fb_sysmove_buf_aligned); 91EXPORT_SYMBOL(fb_pad_aligned_buffer);
94 92
95void fb_sysmove_buf_unaligned(struct fb_info *info, struct fb_pixmap *buf, 93void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, u32 height,
96 u8 *dst, u32 d_pitch, u8 *src, u32 idx, 94 u32 shift_high, u32 shift_low, u32 mod)
97 u32 height, u32 shift_high, u32 shift_low,
98 u32 mod)
99{ 95{
100 u8 mask = (u8) (0xfff << shift_high), tmp; 96 u8 mask = (u8) (0xfff << shift_high), tmp;
101 int i, j; 97 int i, j;
@@ -122,7 +118,7 @@ void fb_sysmove_buf_unaligned(struct fb_info *info, struct fb_pixmap *buf,
122 dst += d_pitch; 118 dst += d_pitch;
123 } 119 }
124} 120}
125EXPORT_SYMBOL(fb_sysmove_buf_unaligned); 121EXPORT_SYMBOL(fb_pad_unaligned_buffer);
126 122
127/* 123/*
128 * we need to lock this section since fb_cursor 124 * we need to lock this section since fb_cursor