vcsm: Allow both clean and invalidate to be requested

This commit is contained in:
popcornmix
2017-09-04 20:48:02 +01:00
parent ca858f7fca
commit f65b249a7b

View File

@@ -2861,7 +2861,8 @@ static long vc_sm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
v6_dma_clean_range((void *)base, (void *)end);
#endif
/* L1/L2 cache invalidate */
} else if (op->invalidate_mode & 1) {
}
if (op->invalidate_mode & 1) {
#if defined(CONFIG_CPU_CACHE_V7)
extern void v7_dma_inv_range(void *start, void *end);
v7_dma_inv_range((void *)base, (void *)end);