aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/agp.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2007-05-08 13:37:51 +1000
committerPaul Mackerras <paulus@samba.org>2007-05-08 13:37:51 +1000
commit02bbc0f09c90cefdb2837605c96a66c5ce4ba2e1 (patch)
tree04ef573cd4de095c500c9fc3477f4278c0b36300 /include/asm-x86_64/agp.h
parent7487a2245b8841c77ba9db406cf99a483b9334e9 (diff)
parent5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff)
downloadkernel_samsung_smdk4412-02bbc0f09c90cefdb2837605c96a66c5ce4ba2e1.zip
kernel_samsung_smdk4412-02bbc0f09c90cefdb2837605c96a66c5ce4ba2e1.tar.gz
kernel_samsung_smdk4412-02bbc0f09c90cefdb2837605c96a66c5ce4ba2e1.tar.bz2
Merge branch 'linux-2.6'
Diffstat (limited to 'include/asm-x86_64/agp.h')
-rw-r--r--include/asm-x86_64/agp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-x86_64/agp.h b/include/asm-x86_64/agp.h
index 06c52ee..de33866 100644
--- a/include/asm-x86_64/agp.h
+++ b/include/asm-x86_64/agp.h
@@ -10,8 +10,10 @@
* with different cachability attributes for the same page.
*/
-int map_page_into_agp(struct page *page);
-int unmap_page_from_agp(struct page *page);
+/* Caller's responsibility to call global_flush_tlb() for
+ * performance reasons */
+#define map_page_into_agp(page) change_page_attr(page, 1, PAGE_KERNEL_NOCACHE)
+#define unmap_page_from_agp(page) change_page_attr(page, 1, PAGE_KERNEL)
#define flush_agp_mappings() global_flush_tlb()
/* Could use CLFLUSH here if the cpu supports it. But then it would