[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>
This commit is contained in:
committed by
Linus Torvalds
parent
303b86d991
commit
f1ab5dac25
@@ -157,9 +157,9 @@ static void bit_putcs(struct vc_data *vc, struct fb_info *info,
|
||||
src = buf;
|
||||
}
|
||||
|
||||
fb_sysmove_buf_unaligned(info, &info->pixmap, dst, pitch,
|
||||
src, idx, image.height,
|
||||
shift_high, shift_low, mod);
|
||||
fb_pad_unaligned_buffer(dst, pitch, src, idx,
|
||||
image.height, shift_high,
|
||||
shift_low, mod);
|
||||
shift_low += mod;
|
||||
dst += (shift_low >= 8) ? width : width - 1;
|
||||
shift_low &= 7;
|
||||
@@ -175,8 +175,7 @@ static void bit_putcs(struct vc_data *vc, struct fb_info *info,
|
||||
src = buf;
|
||||
}
|
||||
|
||||
fb_sysmove_buf_aligned(info, &info->pixmap, dst, pitch,
|
||||
src, idx, image.height);
|
||||
fb_pad_aligned_buffer(dst, pitch, src, idx, image.height);
|
||||
dst += width;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user