summaryrefslogtreecommitdiff
path: root/include/asm-x86/cacheflush.h
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-03-12 03:53:29 +0100
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:30 +0200
commitc9caa02c529d5e113e40cbc77254558fcdfa4215 (patch)
treecb3f9f5a5d26bf7df542a61bfb524e886d8c6510 /include/asm-x86/cacheflush.h
parentcc6150321903ca4c3bc9d53b0cdafb05d77d64d0 (diff)
downloadlwn-c9caa02c529d5e113e40cbc77254558fcdfa4215.tar.gz
lwn-c9caa02c529d5e113e40cbc77254558fcdfa4215.zip
x86: add set_memory_4k to pageattr.c
Add a new function to force split large pages into 4k pages. This is needed for some followup optimizations. I had to add a new field to cpa_data to pass down the information that try_preserve_large_page should not run. Right now no set_page_4k() because I didn't need it and all the specialized users I have in mind would be more comfortable with pure addresses. I also didn't export it because it's unlikely external code needs it. Signed-off-by: Andi Kleen <ak@suse.de> Cc: andreas.herrmann3@amd.com Cc: mingo@elte.hu Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/cacheflush.h')
-rw-r--r--include/asm-x86/cacheflush.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-x86/cacheflush.h b/include/asm-x86/cacheflush.h
index 7ab5b520b7bd..cb1d6f8fd003 100644
--- a/include/asm-x86/cacheflush.h
+++ b/include/asm-x86/cacheflush.h
@@ -45,6 +45,7 @@ int set_memory_nx(unsigned long addr, int numpages);
int set_memory_ro(unsigned long addr, int numpages);
int set_memory_rw(unsigned long addr, int numpages);
int set_memory_np(unsigned long addr, int numpages);
+int set_memory_4k(unsigned long addr, int numpages);
void clflush_cache_range(void *addr, unsigned int size);