Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155542
b: refs/heads/master
c: 42dd861
h: refs/heads/master
v: v3
  • Loading branch information
Simon Farnsworth authored and Dave Airlie committed Jul 15, 2009
1 parent 90cb625 commit ed9ea6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 845792d940f5755b7a7837c450a71d9e831a13e2
refs/heads/master: 42dd8619940a153e950c4d2301cd5e49f7342f99
6 changes: 5 additions & 1 deletion trunk/drivers/gpu/drm/via/via_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ int via_enable_vblank(struct drm_device *dev, int crtc)
}

status = VIA_READ(VIA_REG_INTERRUPT);
VIA_WRITE(VIA_REG_INTERRUPT, status & VIA_IRQ_VBLANK_ENABLE);
VIA_WRITE(VIA_REG_INTERRUPT, status | VIA_IRQ_VBLANK_ENABLE);

VIA_WRITE8(0x83d4, 0x11);
VIA_WRITE8(0x83d5, VIA_READ8(0x83d5) | 0x30);
Expand All @@ -194,6 +194,10 @@ int via_enable_vblank(struct drm_device *dev, int crtc)
void via_disable_vblank(struct drm_device *dev, int crtc)
{
drm_via_private_t *dev_priv = dev->dev_private;
u32 status;

status = VIA_READ(VIA_REG_INTERRUPT);
VIA_WRITE(VIA_REG_INTERRUPT, status & ~VIA_IRQ_VBLANK_ENABLE);

VIA_WRITE8(0x83d4, 0x11);
VIA_WRITE8(0x83d5, VIA_READ8(0x83d5) & ~0x30);
Expand Down

0 comments on commit ed9ea6b

Please sign in to comment.