diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-05-13 17:23:58 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-06-22 19:23:19 +0530 |
commit | 2ed21dae021db1f9f988494ceee519290217520d (patch) | |
tree | d7354ec3e76a08e933b8481b6c0b7f8c6a7e51a7 /arch/arc/include | |
parent | fedf5b9bafca5cd8af99993d1b9cfd13c1dc2c5b (diff) |
ARC: [mm] Assume pagecache page dirty by default
Similar to ARM/SH
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/cacheflush.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arc/include/asm/cacheflush.h b/arch/arc/include/asm/cacheflush.h index 185dfd03dcdb..6abc4972bc93 100644 --- a/arch/arc/include/asm/cacheflush.h +++ b/arch/arc/include/asm/cacheflush.h @@ -81,6 +81,13 @@ void flush_anon_page(struct vm_area_struct *vma, #endif /* CONFIG_ARC_CACHE_VIPT_ALIASING */ /* + * A new pagecache page has PG_arch_1 clear - thus dcache dirty by default + * This works around some PIO based drivers which don't call flush_dcache_page + * to record that they dirtied the dcache + */ +#define PG_dc_clean PG_arch_1 + +/* * Simple wrapper over config option * Bootup code ensures that hardware matches kernel configuration */ |