[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:
James Simmons
2005-06-21 17:17:07 -07:00
committed by Linus Torvalds
parent 303b86d991
commit f1ab5dac25
6 changed files with 26 additions and 44 deletions

View File

@@ -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;
}
}