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/mga_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/mga_irq.c')
-rw-r--r-- | sys/dev/pci/drm/mga_irq.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/mga_irq.c b/sys/dev/pci/drm/mga_irq.c index 4783e65eb29..a4ed2b18546 100644 --- a/sys/dev/pci/drm/mga_irq.c +++ b/sys/dev/pci/drm/mga_irq.c @@ -154,11 +154,6 @@ void mga_driver_irq_preinstall(struct drm_device * dev) int mga_driver_irq_postinstall(struct drm_device * dev) { drm_mga_private_t *dev_priv = (drm_mga_private_t *) dev->dev_private; - int ret; - - ret = drm_vblank_init(dev, 1); - if (ret) - return ret; /* Turn on soft trap interrupt. Vertical blank interrupts are enabled * in mga_enable_vblank. |