From 63710e1caa43cd78739d862136b08bda3ce8475b Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Thu, 24 Apr 2014 16:33:23 -0700 Subject: video: tegra: nvmap: Add get func for pool size Add a function to get the page pool's size without requiring users to traverse the nvmap structs. Change-Id: I40e633a1454d696a3602352b2c708ba56f8e2bb3 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/401169 GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy --- include/linux/nvmap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/linux/nvmap.h') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 041e7fe26..3bfb365b2 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -66,11 +66,16 @@ int nvmap_get_dmabuf_param(struct dma_buf *dmabuf, u32 param, u64 *result); #ifdef CONFIG_NVMAP_PAGE_POOLS ulong nvmap_page_pool_get_unused_pages(void); +ulong nvmap_page_pool_get_pool_size(void); #else static inline int nvmap_page_pool_get_unused_pages(void) { return 0; } +static inline int nvmap_page_pool_get_pool_size(void) +{ + return 0; +} #endif ulong nvmap_iovmm_get_used_pages(void); -- cgit v1.2.2