summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/cacheflush.h
diff options
context:
space:
mode:
authorvenkatesh.pallipadi@intel.com2009-03-19 22:51:15 +0100
committerIngo Molnar2009-03-20 10:34:49 +0100
commit0f3507555f6fa4acbc85a646d6e8766230db38fc (patch)
treef46d34e37e141c9bc305f5c8c8835fa6cd0797fb /arch/x86/include/asm/cacheflush.h
parentx86, PAT: Add support for struct page pointer array in cpa set_clr (diff)
downloadkernel-qcow2-linux-0f3507555f6fa4acbc85a646d6e8766230db38fc.tar.gz
kernel-qcow2-linux-0f3507555f6fa4acbc85a646d6e8766230db38fc.tar.xz
kernel-qcow2-linux-0f3507555f6fa4acbc85a646d6e8766230db38fc.zip
x86, CPA: Add set_pages_arrayuc and set_pages_array_wb
Add new interfaces: set_pages_array_uc() set_pages_array_wb() that can be used change the page attribute for a bunch of pages with flush etc done once at the end of all the changes. These interfaces are similar to existing set_memory_array_uc() and set_memory_array_wc(). Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Cc: arjan@infradead.org Cc: eric@anholt.net Cc: airlied@redhat.com LKML-Reference: <20090319215358.901545000@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/cacheflush.h')
-rw-r--r--arch/x86/include/asm/cacheflush.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cacheflush.h b/arch/x86/include/asm/cacheflush.h
index 5b301b7ff5f4..b3894bf52fcd 100644
--- a/arch/x86/include/asm/cacheflush.h
+++ b/arch/x86/include/asm/cacheflush.h
@@ -90,6 +90,9 @@ int set_memory_4k(unsigned long addr, int numpages);
int set_memory_array_uc(unsigned long *addr, int addrinarray);
int set_memory_array_wb(unsigned long *addr, int addrinarray);
+int set_pages_array_uc(struct page **pages, int addrinarray);
+int set_pages_array_wb(struct page **pages, int addrinarray);
+
/*
* For legacy compatibility with the old APIs, a few functions
* are provided that work on a "struct page".