summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-08-21 12:53:33 -0700
committerDave Airlie <airlied@linux.ie>2008-10-18 07:10:12 +1000
commitd1d8c925b71dd6753bf438f9e14a9e5c5183bcc6 (patch)
treeea0669efa2f70ba8559d644e21b0356b1cba2458 /arch
parent395e0ddc44005ced5e4fed9bfc2e4bdf63d37627 (diff)
downloadlinux-stable-d1d8c925b71dd6753bf438f9e14a9e5c5183bcc6.tar.gz
linux-stable-d1d8c925b71dd6753bf438f9e14a9e5c5183bcc6.tar.bz2
linux-stable-d1d8c925b71dd6753bf438f9e14a9e5c5183bcc6.zip
Export kmap_atomic_pfn for DRM-GEM.
The driver would like to map IO space directly for copying data in when appropriate, to avoid CPU cache flushing for streaming writes. kmap_atomic_pfn lets us avoid IPIs associated with ioremap for this process. Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/highmem_32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c
index 165c871ba9af..bcc079c282dd 100644
--- a/arch/x86/mm/highmem_32.c
+++ b/arch/x86/mm/highmem_32.c
@@ -137,6 +137,7 @@ void *kmap_atomic_pfn(unsigned long pfn, enum km_type type)
return (void*) vaddr;
}
+EXPORT_SYMBOL_GPL(kmap_atomic_pfn); /* temporarily in use by i915 GEM until vmap */
struct page *kmap_atomic_to_page(void *ptr)
{