aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-03-11 22:53:29 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:30 -0400
commitc9caa02c529d5e113e40cbc77254558fcdfa4215 (patch)
treecb3f9f5a5d26bf7df542a61bfb524e886d8c6510 /include
parentcc6150321903ca4c3bc9d53b0cdafb05d77d64d0 (diff)
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')
-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);
45int set_memory_ro(unsigned long addr, int numpages); 45int set_memory_ro(unsigned long addr, int numpages);
46int set_memory_rw(unsigned long addr, int numpages); 46int set_memory_rw(unsigned long addr, int numpages);
47int set_memory_np(unsigned long addr, int numpages); 47int set_memory_np(unsigned long addr, int numpages);
48int set_memory_4k(unsigned long addr, int numpages);
48 49
49void clflush_cache_range(void *addr, unsigned int size); 50void clflush_cache_range(void *addr, unsigned int size);
50 51