diff options
author | Andi Kleen <andi@firstfloor.org> | 2008-03-11 22:53:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:30 -0400 |
commit | c9caa02c529d5e113e40cbc77254558fcdfa4215 (patch) | |
tree | cb3f9f5a5d26bf7df542a61bfb524e886d8c6510 /include | |
parent | cc6150321903ca4c3bc9d53b0cdafb05d77d64d0 (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.h | 1 |
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); | |||
45 | int set_memory_ro(unsigned long addr, int numpages); | 45 | int set_memory_ro(unsigned long addr, int numpages); |
46 | int set_memory_rw(unsigned long addr, int numpages); | 46 | int set_memory_rw(unsigned long addr, int numpages); |
47 | int set_memory_np(unsigned long addr, int numpages); | 47 | int set_memory_np(unsigned long addr, int numpages); |
48 | int set_memory_4k(unsigned long addr, int numpages); | ||
48 | 49 | ||
49 | void clflush_cache_range(void *addr, unsigned int size); | 50 | void clflush_cache_range(void *addr, unsigned int size); |
50 | 51 | ||