summaryrefslogtreecommitdiffstats
path: root/include/linux/nvmap.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2014-04-24 19:33:23 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:54 -0400
commit63710e1caa43cd78739d862136b08bda3ce8475b (patch)
tree257c9cddb9ae0cb7bc9d2e93ae241892c59d8e3e /include/linux/nvmap.h
parent8817ee4beca9ae49822f6f2996e2390e3fa2b0b3 (diff)
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 <alexw@nvidia.com> Reviewed-on: http://git-master/r/401169 GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'include/linux/nvmap.h')
-rw-r--r--include/linux/nvmap.h5
1 files changed, 5 insertions, 0 deletions
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);
66 66
67#ifdef CONFIG_NVMAP_PAGE_POOLS 67#ifdef CONFIG_NVMAP_PAGE_POOLS
68ulong nvmap_page_pool_get_unused_pages(void); 68ulong nvmap_page_pool_get_unused_pages(void);
69ulong nvmap_page_pool_get_pool_size(void);
69#else 70#else
70static inline int nvmap_page_pool_get_unused_pages(void) 71static inline int nvmap_page_pool_get_unused_pages(void)
71{ 72{
72 return 0; 73 return 0;
73} 74}
75static inline int nvmap_page_pool_get_pool_size(void)
76{
77 return 0;
78}
74#endif 79#endif
75 80
76ulong nvmap_iovmm_get_used_pages(void); 81ulong nvmap_iovmm_get_used_pages(void);