video: tegra: nvmap: Prevent reverting to sysmem for small allocations
[linux-2.6.git] / drivers / video / tegra / nvmap / nvmap_handle.c
index 725a132..2f50c0a 100644 (file)
@@ -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) {