summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2012-05-23 16:10:32 -0700
committerSimone Willett <swillett@nvidia.com>2012-06-04 14:43:11 -0700
commitceb59f7bb086357c057771331b8f6f60fa498b0c (patch)
treeed0d88e8ea9c67415df6fb45f01c898c01b28be7 /drivers
parentb8b35d40b4e3197dc5aa80fab649b576e2706c14 (diff)
video: tegra: nvmap: Use config option NVMAP_CACHE_MAINT_BY_SET_WAYS
Change-Id: I762929a0d72a0b26aa1451a946993f4a57806fd4 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/104292 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com> Reviewed-by: Hiro Sugawara <hsugawara@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/nvmap/nvmap_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_ioctl.c b/drivers/video/tegra/nvmap/nvmap_ioctl.c
index 14787154523f..7a10231982c1 100644
--- a/drivers/video/tegra/nvmap/nvmap_ioctl.c
+++ b/drivers/video/tegra/nvmap/nvmap_ioctl.c
@@ -540,6 +540,7 @@ static bool fast_cache_maint(struct nvmap_client *client, struct nvmap_handle *h
{
int ret = false;
+#if defined(CONFIG_NVMAP_CACHE_MAINT_BY_SET_WAYS)
if ((op == NVMAP_CACHE_OP_INV) ||
((end - start) < FLUSH_CLEAN_BY_SET_WAY_THRESHOLD))
goto out;
@@ -559,6 +560,7 @@ static bool fast_cache_maint(struct nvmap_client *client, struct nvmap_handle *h
}
ret = true;
out:
+#endif
return ret;
}