From e6901cad696cf58ee9f1a48bdc7e9fa047824f8a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 29 Sep 2002 20:48:18 +0000 Subject: Fix up BSD irq handling. --- bsd-core/drm_dma.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'bsd-core') diff --git a/bsd-core/drm_dma.c b/bsd-core/drm_dma.c index ebb6fbf6..25d7eb6e 100644 --- a/bsd-core/drm_dma.c +++ b/bsd-core/drm_dma.c @@ -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; -- cgit v1.2.3