From 77d310cf85b000a1213abe164dceedb1ed5add34 Mon Sep 17 00:00:00 2001 From: Cai YiWei Date: Thu, 17 Dec 2020 10:36:00 +0800 Subject: [PATCH] Revert "HACK: media: videobuf2: allow cache hints on all memory types" This reverts commit a7b55392abdd3a85bbe1c621c1d84a937cfff14e. Signed-off-by: Cai YiWei Change-Id: I6eacd69327e0b64d36c8d7c69dd1f0a51ce3480a --- include/media/videobuf2-core.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 1702e4c0988c..5a464d67e1a5 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -591,9 +591,6 @@ struct vb2_queue { */ static inline bool vb2_queue_allows_cache_hints(struct vb2_queue *q) { -#ifdef CONFIG_ARCH_ROCKCHIP - return q->allow_cache_hints; -#endif return q->allow_cache_hints && q->memory == VB2_MEMORY_MMAP; }