summaryrefslogtreecommitdiff
path: root/bsd
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2002-09-29 20:48:18 +0000
committerEric Anholt <anholt@freebsd.org>2002-09-29 20:48:18 +0000
commite6901cad696cf58ee9f1a48bdc7e9fa047824f8a (patch)
treee1933dfa938eac90db9592b4b86805f79c5bd528 /bsd
parentec48dfa83599fa6061bb9cc566f8d8dc1727aced (diff)
Fix up BSD irq handling.
Diffstat (limited to 'bsd')
-rw-r--r--bsd/drm_dma.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/bsd/drm_dma.h b/bsd/drm_dma.h
index ebb6fbf6..25d7eb6e 100644
--- a/bsd/drm_dma.h
+++ b/bsd/drm_dma.h
@@ -598,26 +598,6 @@ int DRM(control)( DRM_IOCTL_ARGS )
#if __HAVE_VBL_IRQ
-int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence)
-{
- unsigned int cur_vblank;
- int ret = 0;
-
- /* Assume that the user has missed the current sequence number by about
- * a day rather than she wants to wait for years using vertical blanks :)
- */
- while ( ( ( cur_vblank = atomic_read(&dev->vbl_received ) )
- + ~*sequence + 1 ) > (1<<23) ) {
- ret = tsleep( &dev->vbl_queue, 3*hz, "rdnvbl", PZERO | PCATCH);
- if (ret)
- break;
- }
-
- *sequence = cur_vblank;
-
- return ret;
-}
-
int DRM(wait_vblank)( DRM_IOCTL_ARGS )
{
DRM_DEVICE;