From 0f9cf9b586cc064deb8057bb1427583c49162ccb Mon Sep 17 00:00:00 2001 From: Jon Mayo Date: Mon, 29 Aug 2011 18:09:16 -0700 Subject: ARM: tegra: speed up framebuffer copy Use a memcpy with less overhead in tegra_move_framebuffer, this makes this function about 30 times faster. Bug 843089 Change-Id: I4ae9127db6d5ff5d9680e3ff2c3d28463395e39b Reviewed-on: http://git-master/r/49735 Reviewed-by: Jonathan Mayo Tested-by: Jonathan Mayo Reviewed-by: Krishna Reddy Reviewed-by: Yu-Huan Hsu Reviewed-by: Kevin Huang --- arch/arm/mach-tegra/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 43f861883622..45ed7344e996 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -608,7 +608,7 @@ void tegra_move_framebuffer(unsigned long to, unsigned long from, for (i = 0 ; i < size; i += PAGE_SIZE) { page = phys_to_page(from + i); from_virt = kmap(page); - memcpy_toio(to_io + i, from_virt, PAGE_SIZE); + memcpy(to_io + i, from_virt, PAGE_SIZE); kunmap(page); } } else { -- cgit v1.2.3