diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-23 20:46:49 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-23 20:46:49 +0000 |
commit | 17ac785bb3a684774ebdad9381363f2883fec44a (patch) | |
tree | 9e83e26cc13cf40543586011dc619d4106e18c9a /sys/dev/pci/drm/r128_irq.c | |
parent | 00a60f9fe7c7c1784b2561115217114954996d0e (diff) |
Move vblank data allocation to happening at attach, not at irq enable.
just put a vblank_pipes argument to the driver structure which tells us
how many to set up
this means that intel doesn't lose all vblank count on vtswitch (it
disables the interrupt there), i've heard of a few uvm_faults where this
happens as well as things just going wrong.
This was suggested by Keith Packard who provided a different diff for
drm.git.
Diffstat (limited to 'sys/dev/pci/drm/r128_irq.c')
-rw-r--r-- | sys/dev/pci/drm/r128_irq.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/r128_irq.c b/sys/dev/pci/drm/r128_irq.c index 5b95bd898f9..50f1f08920d 100644 --- a/sys/dev/pci/drm/r128_irq.c +++ b/sys/dev/pci/drm/r128_irq.c @@ -100,11 +100,6 @@ void r128_driver_irq_preinstall(struct drm_device * dev) R128_WRITE(R128_GEN_INT_STATUS, R128_CRTC_VBLANK_INT_AK); } -int r128_driver_irq_postinstall(struct drm_device * dev) -{ - return drm_vblank_init(dev, 1); -} - void r128_driver_irq_uninstall(struct drm_device * dev) { drm_r128_private_t *dev_priv = (drm_r128_private_t *) dev->dev_private; |