video: driver: enable buffer pool for mostly used structures

Enabled recycling for below structure types.

- struct msm_vidc_buffer
- struct msm_vidc_alloc
- struct msm_vidc_map.

Change-Id: I062abef85db24385745119b821f87e5b72a4e835
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal
2021-04-05 18:09:02 +05:30
parent 459b93d5f3
commit a13f0e1416
8 changed files with 254 additions and 57 deletions

View File

@@ -750,7 +750,6 @@ struct msm_vidc_allocations {
struct msm_vidc_map {
struct list_head list;
bool valid;
enum msm_vidc_buffer_type type;
enum msm_vidc_buffer_region region;
struct dma_buf *dmabuf;
@@ -767,7 +766,6 @@ struct msm_vidc_mappings {
struct msm_vidc_buffer {
struct list_head list;
bool valid;
enum msm_vidc_buffer_type type;
u32 index;
int fd;
@@ -790,6 +788,11 @@ struct msm_vidc_buffers {
bool reuse;
};
struct msm_vidc_pool {
struct list_head list;
u32 count;
};
enum msm_vidc_allow {
MSM_VIDC_DISALLOW = 0,
MSM_VIDC_ALLOW,