summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-10-07 22:25:13 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-10-07 22:25:13 +0000
commit80c9e2d60d9935ec71deb4cdadcd95ed1eab7bd5 (patch)
tree427cd8c404be603a4becfdf03099d5d11bcbf8c1 /sys/dev/pci/drm/drmP.h
parentfe8d8e4b6ee985aaaffe6e1231eae6166fa58582 (diff)
Kill the linux-ready negative return codes in ``shared'' code. We handle
them wrong in several cases that i've noticed and Merging when needed is still fairly simple, anyway. This shaves another 500 bytes from an amd64 kernel due to not having to flip the sign on some things. It also stops my eyes bleeding. Tested by a few along with the last diff that went in.
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 6bf354fa31b..73260123d0b 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -237,13 +237,12 @@ do { \
} \
} while (0)
-/* Returns -errno to shared code */
#define DRM_WAIT_ON( ret, queue, timeout, condition ) \
DRM_SPINLOCK(&dev->irq_lock); \
while ( ret == 0 ) { \
if (condition) \
break; \
- ret = -msleep(&(queue), &dev->irq_lock, \
+ ret = msleep(&(queue), &dev->irq_lock, \
PZERO | PCATCH, "drmwtq", (timeout)); \
} \
DRM_SPINUNLOCK(&dev->irq_lock)