From: Eric Anholt Date: Mon, 14 Oct 2002 23:35:24 +0000 (+0000) Subject: Fix reversed test that broke vblank waiting on FreeBSD. X-Git-Tag: submit/1.0/20121108.012404~2462 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e9fad35880e89d428ba917d842d0e9ed9a1be6b;p=profile%2Fivi%2Flibdrm.git Fix reversed test that broke vblank waiting on FreeBSD. Pointy hat to: anholt --- diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h index 1206b25..ff2a646 100644 --- a/bsd-core/drm_os_freebsd.h +++ b/bsd-core/drm_os_freebsd.h @@ -142,7 +142,7 @@ do { \ #define DRM_HZ hz #define DRM_WAIT_ON( ret, queue, timeout, condition ) \ -while (condition) { \ +while (!condition) { \ ret = tsleep( &(queue), PZERO | PCATCH, "drmwtq", (timeout) ); \ if ( ret ) \ return ret; \ diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 1206b25..ff2a646 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -142,7 +142,7 @@ do { \ #define DRM_HZ hz #define DRM_WAIT_ON( ret, queue, timeout, condition ) \ -while (condition) { \ +while (!condition) { \ ret = tsleep( &(queue), PZERO | PCATCH, "drmwtq", (timeout) ); \ if ( ret ) \ return ret; \