summaryrefslogtreecommitdiffstats
path: root/arch/score/include
diff options
context:
space:
mode:
authorChen Liqin <liqin.chen@sunplusct.com>2009-11-18 13:22:33 +0800
committerChen Liqin <liqin.chen@sunplusct.com>2009-12-17 18:28:31 +0800
commit11ab3f3d3c2474d3ed6912443de74c3972bd6f23 (patch)
tree51b121a80494989c220b10dbef1f2c463882899f /arch/score/include
parent718deb6b61e34c200c1f2b706176d9aac334cb2d (diff)
downloadop-kernel-dev-11ab3f3d3c2474d3ed6912443de74c3972bd6f23.zip
op-kernel-dev-11ab3f3d3c2474d3ed6912443de74c3972bd6f23.tar.gz
score: add flush_dcahce_page and PG_dcache_dirty define
Signed-off-by: Cui Bixiong <bixiong@sunnorth.com.cn> Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com> modified: arch/score/include/asm/cacheflush.h modified: arch/score/mm/cache.c
Diffstat (limited to 'arch/score/include')
-rw-r--r--arch/score/include/asm/cacheflush.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/score/include/asm/cacheflush.h b/arch/score/include/asm/cacheflush.h
index caaba24..1d545d0 100644
--- a/arch/score/include/asm/cacheflush.h
+++ b/arch/score/include/asm/cacheflush.h
@@ -14,10 +14,12 @@ extern void flush_cache_sigtramp(unsigned long addr);
extern void flush_icache_all(void);
extern void flush_icache_range(unsigned long start, unsigned long end);
extern void flush_dcache_range(unsigned long start, unsigned long end);
+extern void flush_dcache_page(struct page *page);
+
+#define PG_dcache_dirty PG_arch_1
#define flush_cache_dup_mm(mm) do {} while (0)
#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0
-#define flush_dcache_page(page) do {} while (0)
#define flush_dcache_mmap_lock(mapping) do {} while (0)
#define flush_dcache_mmap_unlock(mapping) do {} while (0)
#define flush_cache_vmap(start, end) do {} while (0)
OpenPOWER on IntegriCloud