nvmap: page pools: hide internal lock from nvmap_handle.c
authorColin Cross <ccross@android.com>
Mon, 11 Aug 2014 21:08:40 +0000 (14:08 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 12 May 2015 20:27:47 +0000 (13:27 -0700)
commit2078fc6edf484960131403f1708118a48875e29f
tree1e0b24339c14272590b2c686bb0a138b24b7fb9a
parent2aeb7cf00716eb5a134a83120771e9012ace559b
nvmap: page pools: hide internal lock from nvmap_handle.c

The internal pool lock is exported so that nvmap_handle can lock
it, call a *_locked function, and then unlock it.  Provide a
version of the *_locked functions that takes the lock, remove
the lock and unlock helpers, and make the lock private to
the pools again.

Change-Id: I5a99753058e43161d50a0c61f3a984655cd7cd35
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664671
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736425
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_pp.c
drivers/video/tegra/nvmap/nvmap_priv.h