diff options
author | Alex Waterman <alexw@nvidia.com> | 2012-08-01 11:02:30 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-15 12:49:57 -0700 |
commit | ce2daefbdf5eeb371e1aae15e6dc1928e2c1c627 (patch) | |
tree | bf5bcad37a081b9bfbb20cdfc64f93522eebc194 /include/linux | |
parent | 18156565232996364bbeef583db5fee07940ca7d (diff) |
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 <alexw@nvidia.com>
Reviewed-on: http://git-master/r/122549
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nvmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
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__) |