drm/msm: use kmem_cache pool for struct vblank_work

These get allocated and freed millions of times on this kernel tree.

Use a dedicated kmem_cache pool and avoid costly dynamic memory allocations.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Park Ju Hyung 2019-07-12 00:53:59 +09:00 committed by azrim
parent 241a81ebcb
commit 49feb90ede
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -66,6 +66,7 @@ atomic_t resume_pending;
wait_queue_head_t resume_wait_q;
static struct kmem_cache *kmem_vblank_work_pool;
static struct kmem_cache *kmem_vblank_work_pool;
static DEFINE_MUTEX(msm_release_lock);
static void msm_fb_output_poll_changed(struct drm_device *dev)