projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b195bc0
)
x86: re-add clflush_cache_range()
author
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:34:03 +0000
(13:34 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:34:03 +0000
(13:34 +0100)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/pageattr.c
b/arch/x86/mm/pageattr.c
index 251613449dd6baefdbd4ffa0709e16b3429d3866..510ff40916674f4d8b66d85b043907cbf79c67d9 100644
(file)
--- a/
arch/x86/mm/pageattr.c
+++ b/
arch/x86/mm/pageattr.c
@@
-9,6
+9,14
@@
#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>