From: Ingo Molnar Date: Wed, 30 Jan 2008 12:34:06 +0000 (+0100) Subject: x86: cpa: move clflush_cache_range() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e81d5dc41b67349c06e80658227c9156738f0df1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86: cpa: move 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 00f6f341e291..4208571334db 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c @@ -9,14 +9,6 @@ #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 @@ -290,6 +282,14 @@ int change_page_attr(struct page *page, int numpages, pgprot_t prot) } EXPORT_SYMBOL(change_page_attr); +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); +} + static void flush_kernel_map(void *arg) { /*