diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:03 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:03 -0500 |
commit | 4554ab95c2b9d6b0ee9cf2a7ed3df665422acebb (patch) | |
tree | bcca816c76c4ab27b174c881f7c6c08feacf571a /arch | |
parent | b195bc00ef8c2ccf8cc744e5ff9470cb08b45d76 (diff) |
x86: re-add clflush_cache_range()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/pageattr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 251613449dd6..510ff4091667 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -9,6 +9,14 @@ | |||
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 | |||
12 | #include <asm/processor.h> | 20 | #include <asm/processor.h> |
13 | #include <asm/tlbflush.h> | 21 | #include <asm/tlbflush.h> |
14 | #include <asm/sections.h> | 22 | #include <asm/sections.h> |