diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:34:06 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:34:06 +0100 |
commit | e81d5dc41b67349c06e80658227c9156738f0df1 (patch) | |
tree | aa299e5113d9f84da4faf900abc1e6a0c265b06d /arch/x86 | |
parent | e64c8aa0c5e5d23730b2d702297e01cd7fe53144 (diff) |
x86: cpa: move clflush_cache_range()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/mm/pageattr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 00f6f341e29..4208571334d 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c @@ -9,14 +9,6 @@ #include <linux/slab.h> #include <linux/mm.h> -void clflush_cache_range(void *addr, int size) -{ - int i; - - for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size) - clflush(addr+i); -} - #include <asm/processor.h> #include <asm/tlbflush.h> #include <asm/sections.h> @@ -290,6 +282,14 @@ int change_page_attr(struct page *page, int numpages, pgprot_t prot) } EXPORT_SYMBOL(change_page_attr); +void clflush_cache_range(void *addr, int size) +{ + int i; + + for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size) + clflush(addr+i); +} + static void flush_kernel_map(void *arg) { /* |