diff options
author | Shaohua Li <shaohua.li@intel.com> | 2008-08-04 02:51:24 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-15 10:30:45 -0400 |
commit | 1ac2f7d55b7ee1613c90631e87fea22ec06781e5 (patch) | |
tree | 1f93aaed49cf60982b11fbf38fc6e331643a5c08 /include/asm-x86/cacheflush.h | |
parent | 012f09e7942716d5f4339f1fd9a831a485bb1d4a (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.h | 3 |
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); | |||
57 | int _set_memory_wc(unsigned long addr, int numpages); | 57 | int _set_memory_wc(unsigned long addr, int numpages); |
58 | int _set_memory_wb(unsigned long addr, int numpages); | 58 | int _set_memory_wb(unsigned long addr, int numpages); |
59 | int set_memory_uc(unsigned long addr, int numpages); | 59 | int set_memory_uc(unsigned long addr, int numpages); |
60 | int set_memory_uc_noflush(unsigned long addr, int numpages); | ||
61 | void set_memory_flush_all(void); | ||
60 | int set_memory_wc(unsigned long addr, int numpages); | 62 | int set_memory_wc(unsigned long addr, int numpages); |
61 | int set_memory_wb(unsigned long addr, int numpages); | 63 | int set_memory_wb(unsigned long addr, int numpages); |
62 | int set_memory_x(unsigned long addr, int numpages); | 64 | int 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 | ||
89 | int set_pages_uc(struct page *page, int numpages); | 91 | int set_pages_uc(struct page *page, int numpages); |
92 | int set_pages_uc_noflush(struct page *page, int numpages); | ||
90 | int set_pages_wb(struct page *page, int numpages); | 93 | int set_pages_wb(struct page *page, int numpages); |
91 | int set_pages_x(struct page *page, int numpages); | 94 | int set_pages_x(struct page *page, int numpages); |
92 | int set_pages_nx(struct page *page, int numpages); | 95 | int set_pages_nx(struct page *page, int numpages); |