mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
241a81ebcb
commit
49feb90ede
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user