nvmap: combine two methods of requesting zeroed memory
authorColin Cross <ccross@android.com>
Mon, 11 Aug 2014 21:25:20 +0000 (14:25 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 12 May 2015 20:27:58 +0000 (13:27 -0700)
commit4a3a5bb3cb51bcd55d0695fcb4d6d28b4b2f2461
tree08bd3090e7c64ad6c355bf98d714381b3e8d9a9a
parent2078fc6edf484960131403f1708118a48875e29f
nvmap: combine two methods of requesting zeroed memory

Combine CONFIG_NVMAP_FORCE_ZEROED_USER_PAGES and the zero_memory
modparam into a single option by forcing zero_memory=1 when
CONFIG_NVMAP_FORCE_ZEROED_USER_PAGES is set, and always using
zero_memory to decided whether to zero or not.

Change-Id: I9ce0106cfaea950bd9494b697916fbc2a03329ea
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664672
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736426
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
drivers/video/tegra/nvmap/nvmap_handle.c
drivers/video/tegra/nvmap/nvmap_priv.h