From: Rusty Russell Date: Fri, 30 May 2008 20:09:40 +0000 (-0500) Subject: lguest: use ioremap_cache, not ioremap X-Git-Tag: upstream/snapshot3+hdmi~24796^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e27810f11340987df123a99eb9ae14c054a55639;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git lguest: use ioremap_cache, not ioremap Thanks to Jon Corbet & LWN. Only took me a day to join the dots. Host->Guest netcat before (with unnecessily large receive buffers): 1073741824 bytes (1.1 GB) copied, 24.7528 seconds, 43.4 MB/s After: 1073741824 bytes (1.1 GB) copied, 17.6369 seconds, 60.9 MB/s Signed-off-by: Rusty Russell --- diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c index 8080249..f4fdf35 100644 --- a/drivers/lguest/lguest_device.c +++ b/drivers/lguest/lguest_device.c @@ -27,7 +27,7 @@ static unsigned int dev_index; * __iomem to quieten sparse. */ static inline void *lguest_map(unsigned long phys_addr, unsigned long pages) { - return (__force void *)ioremap(phys_addr, PAGE_SIZE*pages); + return (__force void *)ioremap_cache(phys_addr, PAGE_SIZE*pages); } static inline void lguest_unmap(void *addr)