diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2015-07-28 11:53:18 +0300 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-08-16 07:27:25 +0300 |
commit | 67412d15afb7cc34943157c4bce2cf138b579fd1 (patch) | |
tree | ceaacac0e7e7c4c23a4be62e9733c7bf062ef12f /drivers/gpu/drm/exynos/exynos_drm_gem.c | |
parent | 23597e2642ca76883ef533d3e3947b859537fd49 (diff) | |
download | linux-67412d15afb7cc34943157c4bce2cf138b579fd1.tar.xz |
drm/exynos: remove mutex locking in pagefault handler
There is no reason to use mutex locking in pagefault handler.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_gem.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gem.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index f717d795e9ae..0c53b858bfec 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -560,7 +560,6 @@ unlock: int exynos_drm_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) { struct drm_gem_object *obj = vma->vm_private_data; - struct drm_device *dev = obj->dev; unsigned long f_vaddr; pgoff_t page_offset; int ret; @@ -569,14 +568,10 @@ int exynos_drm_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) vma->vm_start) >> PAGE_SHIFT; f_vaddr = (unsigned long)vmf->virtual_address; - mutex_lock(&dev->struct_mutex); - ret = exynos_drm_gem_map_buf(obj, vma, f_vaddr, page_offset); if (ret < 0) DRM_ERROR("failed to map a buffer with user.\n"); - mutex_unlock(&dev->struct_mutex); - switch (ret) { case 0: case -ERESTARTSYS: |