From: Ingo Molnar Date: Wed, 30 Jan 2008 12:34:03 +0000 (+0100) Subject: x86: re-add clflush_cache_range() X-Git-Tag: v2.6.25-rc1~1143^2~80 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4554ab95c2b9d6b0ee9cf2a7ed3df665422acebb;p=linux-2.6-omap-h63xx.git x86: re-add clflush_cache_range() Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 251613449dd..510ff409166 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c @@ -9,6 +9,14 @@ #include #include +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 #include #include