aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:34:06 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:06 -0500
commite81d5dc41b67349c06e80658227c9156738f0df1 (patch)
treeaa299e5113d9f84da4faf900abc1e6a0c265b06d
parente64c8aa0c5e5d23730b2d702297e01cd7fe53144 (diff)
x86: cpa: move clflush_cache_range()
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--arch/x86/mm/pageattr.c16
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
12void 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}
291EXPORT_SYMBOL(change_page_attr); 283EXPORT_SYMBOL(change_page_attr);
292 284
285void 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
293static void flush_kernel_map(void *arg) 293static void flush_kernel_map(void *arg)
294{ 294{
295 /* 295 /*