Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43913
b: refs/heads/master
c: 049b323
h: refs/heads/master
i:
  43911: bc9e90b
v: v3
  • Loading branch information
=?utf-8?q?Michel_D=C3=A4nzer?= authored and airlied committed Dec 7, 2006
1 parent c49d328 commit 189a3e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: ab285d74e6742422fd0465577a31fb03fe9ed241
refs/heads/master: 049b323321bbcb476b799f50dc6444c0ed5a0e0e
5 changes: 3 additions & 2 deletions trunk/drivers/char/drm/drm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ int drm_wait_vblank(DRM_IOCTL_ARGS)
? &dev->vbl_sigs2 : &dev->vbl_sigs;
drm_vbl_sig_t *vbl_sig;

vblwait.reply.sequence = seq;

spin_lock_irqsave(&dev->vbl_lock, irqflags);

/* Check if this task has already scheduled the same signal
Expand All @@ -310,6 +308,7 @@ int drm_wait_vblank(DRM_IOCTL_ARGS)
&& vbl_sig->task == current) {
spin_unlock_irqrestore(&dev->vbl_lock,
irqflags);
vblwait.reply.sequence = seq;
goto done;
}
}
Expand Down Expand Up @@ -340,6 +339,8 @@ int drm_wait_vblank(DRM_IOCTL_ARGS)
list_add_tail((struct list_head *)vbl_sig, &vbl_sigs->head);

spin_unlock_irqrestore(&dev->vbl_lock, irqflags);

vblwait.reply.sequence = seq;
} else {
if (flags & _DRM_VBLANK_SECONDARY) {
if (dev->driver->vblank_wait2)
Expand Down

0 comments on commit 189a3e4

Please sign in to comment.