Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357959
b: refs/heads/master
c: d5d2636
h: refs/heads/master
i:
  357957: 6f19479
  357955: 8a457a8
  357951: ef7560f
v: v3
  • Loading branch information
Daniel Vetter committed Jan 20, 2013
1 parent 4955855 commit 4e1250c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbe4b99ff2443e305598768ae8eac6bc3516b7c9
refs/heads/master: d5d2636ed7990b93c7216f6a4d323f6b0eee08af
8 changes: 4 additions & 4 deletions trunk/drivers/staging/omapdrm/omap_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,13 @@ static void page_flip_worker(struct work_struct *work)
struct drm_display_mode *mode = &crtc->mode;
struct drm_gem_object *bo;

mutex_lock(&dev->mode_config.mutex);
drm_modeset_lock_all(dev);
omap_plane_mode_set(omap_crtc->plane, crtc, crtc->fb,
0, 0, mode->hdisplay, mode->vdisplay,
crtc->x << 16, crtc->y << 16,
mode->hdisplay << 16, mode->vdisplay << 16,
vblank_cb, crtc);
mutex_unlock(&dev->mode_config.mutex);
drm_modeset_unlock_all(dev);

bo = omap_framebuffer_bo(crtc->fb, 0);
drm_gem_object_unreference_unlocked(bo);
Expand Down Expand Up @@ -417,7 +417,7 @@ static void apply_worker(struct work_struct *work)
* the callbacks and list modification all serialized
* with respect to modesetting ioctls from userspace.
*/
mutex_lock(&dev->mode_config.mutex);
drm_modeset_lock_all(dev);
dispc_runtime_get();

/*
Expand Down Expand Up @@ -462,7 +462,7 @@ static void apply_worker(struct work_struct *work)

out:
dispc_runtime_put();
mutex_unlock(&dev->mode_config.mutex);
drm_modeset_unlock_all(dev);
}

int omap_crtc_apply(struct drm_crtc *crtc,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/omapdrm/omap_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,9 @@ static void dev_lastclose(struct drm_device *dev)
}
}

mutex_lock(&dev->mode_config.mutex);
drm_modeset_lock_all(dev);
ret = drm_fb_helper_restore_fbdev_mode(priv->fbdev);
mutex_unlock(&dev->mode_config.mutex);
drm_modeset_unlock_all(dev);
if (ret)
DBG("failed to restore crtc mode");
}
Expand Down

0 comments on commit 4e1250c

Please sign in to comment.