summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/nvmap/nvmap_handle.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-10-19 18:33:52 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:36:31 -0800
commit020d1849c0d6ec848e579e6330e36602557ba7e5 (patch)
tree055b3f1f4c05e8c111b685335bf804695dd717ac /drivers/video/tegra/nvmap/nvmap_handle.c
parentf9c9bde0e262b5ce60ffd4305d144918beae0cd0 (diff)
video: tegra: nvmap: Prevent reverting to sysmem for small allocations
Change-Id: Icfe552ad4a968329a1a2959d5b438062587a83b6 Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'drivers/video/tegra/nvmap/nvmap_handle.c')
-rw-r--r--drivers/video/tegra/nvmap/nvmap_handle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c
index 725a132ff6fd..2f50c0a1b8d3 100644
--- a/drivers/video/tegra/nvmap/nvmap_handle.c
+++ b/drivers/video/tegra/nvmap/nvmap_handle.c
@@ -149,8 +149,10 @@ static int handle_page_alloc(struct nvmap_client *client,
prot = nvmap_pgprot(h, pgprot_kernel);
+#ifdef CONFIG_NVMAP_ALLOW_SYSMEM
if (nr_page == 1)
contiguous = true;
+#endif
h->pgalloc.area = NULL;
if (contiguous) {