linux-mips
[Top] [All Lists]

[PATCH] Implement flush_kernel_dcache_page()

To: linux-mips@linux-mips.org
Subject: [PATCH] Implement flush_kernel_dcache_page()
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Sun, 16 Sep 2007 02:22:31 +0900 (JST)
Cc: vagabon.xyz@gmail.com, ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
I'm just resending this with a proper subject.

diff --git a/include/asm-mips/cacheflush.h b/include/asm-mips/cacheflush.h
index 4933b49..82e734d 100644
--- a/include/asm-mips/cacheflush.h
+++ b/include/asm-mips/cacheflush.h
@@ -79,6 +79,13 @@ extern void (*flush_icache_all)(void);
 extern void (*local_flush_data_cache_page)(void * addr);
 extern void (*flush_data_cache_page)(unsigned long addr);
 
+#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
+static inline void flush_kernel_dcache_page(struct page *page)
+{
+       if (cpu_has_dc_aliases)
+               flush_data_cache_page((unsigned long)page_address(page));
+}
+
 /*
  * This flag is used to indicate that the page pointed to by a pte
  * is dirty and requires cleaning before returning it to the user.

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Implement flush_kernel_dcache_page(), Atsushi Nemoto <=