diff options
Diffstat (limited to 'arch/x86/mm/pageattr.c')
-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 00f6f341e291..4208571334db 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -9,14 +9,6 @@ | |||
9 | #include <linux/slab.h> | 9 | #include <linux/slab.h> |
10 | #include <linux/mm.h> | 10 | #include <linux/mm.h> |
11 | 11 | ||
12 | void clflush_cache_range(void *addr, int size) | ||
13 | { | ||
14 | int i; | ||
15 | |||
16 | for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size) | ||
17 | clflush(addr+i); | ||
18 | } | ||
19 | |||
20 | #include <asm/processor.h> | 12 | #include <asm/processor.h> |
21 | #include <asm/tlbflush.h> | 13 | #include <asm/tlbflush.h> |
22 | #include <asm/sections.h> | 14 | #include <asm/sections.h> |
@@ -290,6 +282,14 @@ int change_page_attr(struct page *page, int numpages, pgprot_t prot) | |||
290 | } | 282 | } |
291 | EXPORT_SYMBOL(change_page_attr); | 283 | EXPORT_SYMBOL(change_page_attr); |
292 | 284 | ||
285 | void clflush_cache_range(void *addr, int size) | ||
286 | { | ||
287 | int i; | ||
288 | |||
289 | for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size) | ||
290 | clflush(addr+i); | ||
291 | } | ||
292 | |||
293 | static void flush_kernel_map(void *arg) | 293 | static void flush_kernel_map(void *arg) |
294 | { | 294 | { |
295 | /* | 295 | /* |