diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-05-30 16:09:40 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-05-30 01:09:41 -0400 |
commit | e27810f11340987df123a99eb9ae14c054a55639 (patch) | |
tree | 4605228957a1e02cde0d4fa753cc3cbe2f75656c /drivers/lguest | |
parent | 0a2ce2ffc358da96792d514c1024b72c52be9cc1 (diff) |
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 <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest')
-rw-r--r-- | drivers/lguest/lguest_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c index 8080249957af..f4fdf351a7c7 100644 --- a/drivers/lguest/lguest_device.c +++ b/drivers/lguest/lguest_device.c | |||
@@ -27,7 +27,7 @@ static unsigned int dev_index; | |||
27 | * __iomem to quieten sparse. */ | 27 | * __iomem to quieten sparse. */ |
28 | static inline void *lguest_map(unsigned long phys_addr, unsigned long pages) | 28 | static inline void *lguest_map(unsigned long phys_addr, unsigned long pages) |
29 | { | 29 | { |
30 | return (__force void *)ioremap(phys_addr, PAGE_SIZE*pages); | 30 | return (__force void *)ioremap_cache(phys_addr, PAGE_SIZE*pages); |
31 | } | 31 | } |
32 | 32 | ||
33 | static inline void lguest_unmap(void *addr) | 33 | static inline void lguest_unmap(void *addr) |