mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
video: speedup writing strings to fb console
With enabled framebuffer console the printenv command can take several seconds to complete. This patch temporarily disables cache flush when writing strings to fb console. Then there is no noticable delay anymore. Tested with imx6 hdmi framebuffer. Signed-off-by: Soeren Moch <smoch@web.de> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
571bdf16a7
commit
d37e96ecb9
1 changed files with 9 additions and 0 deletions
|
@ -1160,10 +1160,19 @@ static void video_putc(struct stdio_dev *dev, const char c)
|
|||
|
||||
static void video_puts(struct stdio_dev *dev, const char *s)
|
||||
{
|
||||
int flush = cfb_do_flush_cache;
|
||||
int count = strlen(s);
|
||||
|
||||
/* temporarily disable cache flush */
|
||||
cfb_do_flush_cache = 0;
|
||||
|
||||
while (count--)
|
||||
video_putc(dev, *s++);
|
||||
|
||||
if (flush) {
|
||||
cfb_do_flush_cache = flush;
|
||||
flush_cache(VIDEO_FB_ADRS, VIDEO_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue