video/rockchip: rga2: Ion can be used below kernel4.4.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ie9da1dfcd8682875763d401bc0c5d874ad98b870
This commit is contained in:
Yu Qiaowei
2020-11-30 14:32:38 +08:00
committed by Tao Huang
parent 0e98c78dfc
commit 522d802667

View File

@@ -54,6 +54,10 @@
#include "rga2_mmu_info.h"
#include "RGA2_API.h"
#if IS_ENABLED(CONFIG_ION_ROCKCHIP) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0))
#include <linux/rockchip_ion.h>
#endif
#if ((defined(CONFIG_RK_IOMMU) || defined(CONFIG_ROCKCHIP_IOMMU)) && defined(CONFIG_ION_ROCKCHIP))
#define CONFIG_RGA_IOMMU
#endif
@@ -687,8 +691,8 @@ static int rga2_flush(rga2_session *session, unsigned long arg)
{
int ret = 0;
int ret_timeout;
ktime_t start = 0;
ktime_t end = 0;
ktime_t start;
ktime_t end;
#if RGA2_DEBUGFS
if (RGA2_TEST_TIME)