aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/cacheflush.h
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2008-08-04 02:51:24 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-15 10:30:45 -0400
commit1ac2f7d55b7ee1613c90631e87fea22ec06781e5 (patch)
tree1f93aaed49cf60982b11fbf38fc6e331643a5c08 /include/asm-x86/cacheflush.h
parent012f09e7942716d5f4339f1fd9a831a485bb1d4a (diff)
introduce two APIs for page attribute
Introduce two APIs for page attribute. flushing tlb/cache in every page attribute is expensive. AGP gart usually will do a lot of operations to change a page to uc, new APIs can reduce flush. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Cc: airlied@linux.ie Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/cacheflush.h')
-rw-r--r--include/asm-x86/cacheflush.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/cacheflush.h b/include/asm-x86/cacheflush.h
index f4c0ab50d2c..57bac7b68c4 100644
--- a/include/asm-x86/cacheflush.h
+++ b/include/asm-x86/cacheflush.h
@@ -57,6 +57,8 @@ int _set_memory_uc(unsigned long addr, int numpages);
57int _set_memory_wc(unsigned long addr, int numpages); 57int _set_memory_wc(unsigned long addr, int numpages);
58int _set_memory_wb(unsigned long addr, int numpages); 58int _set_memory_wb(unsigned long addr, int numpages);
59int set_memory_uc(unsigned long addr, int numpages); 59int set_memory_uc(unsigned long addr, int numpages);
60int set_memory_uc_noflush(unsigned long addr, int numpages);
61void set_memory_flush_all(void);
60int set_memory_wc(unsigned long addr, int numpages); 62int set_memory_wc(unsigned long addr, int numpages);
61int set_memory_wb(unsigned long addr, int numpages); 63int set_memory_wb(unsigned long addr, int numpages);
62int set_memory_x(unsigned long addr, int numpages); 64int set_memory_x(unsigned long addr, int numpages);
@@ -87,6 +89,7 @@ int set_memory_4k(unsigned long addr, int numpages);
87 */ 89 */
88 90
89int set_pages_uc(struct page *page, int numpages); 91int set_pages_uc(struct page *page, int numpages);
92int set_pages_uc_noflush(struct page *page, int numpages);
90int set_pages_wb(struct page *page, int numpages); 93int set_pages_wb(struct page *page, int numpages);
91int set_pages_x(struct page *page, int numpages); 94int set_pages_x(struct page *page, int numpages);
92int set_pages_nx(struct page *page, int numpages); 95int set_pages_nx(struct page *page, int numpages);