From ce2daefbdf5eeb371e1aae15e6dc1928e2c1c627 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 1 Aug 2012 11:02:30 -0700 Subject: video: tegra: nvmap: Add support for zeroed pages Add support to alloc zeroed pages for user space alloc requests. Also define a config option to force userspace allocation requests to be zeroed. Change-Id: I75d3b2bc36e808f1470b423578ec4cba99e0f967 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/122549 Reviewed-by: Simone Willett Tested-by: Simone Willett --- include/linux/nvmap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 553a7bd01a6d..692956b2fc4f 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -3,7 +3,7 @@ * * structure declarations for nvmem and nvmap user-space ioctls * - * Copyright (c) 2009-2012, NVIDIA Corporation. + * Copyright (c) 2009-2012, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,6 +49,7 @@ #define NVMAP_HANDLE_CACHE_FLAG (0x3ul << 0) #define NVMAP_HANDLE_SECURE (0x1ul << 2) +#define NVMAP_HANDLE_ZEROED_PAGES (0x1ul << 3) #if defined(__KERNEL__) -- cgit v1.2.3