diff options
author | 2013-07-08 09:43:18 +0000 | |
---|---|---|
committer | 2013-07-08 09:43:18 +0000 | |
commit | 3a366ed82c306616a38cd1aaba65d3a7beace8cd (patch) | |
tree | 73b2bf0370a2e6b9378e5fc5cc5666c7dbd1d766 | |
parent | Swap the program name and it's exit code so the output makes sense again. (diff) | |
download | wireguard-openbsd-3a366ed82c306616a38cd1aaba65d3a7beace8cd.tar.xz wireguard-openbsd-3a366ed82c306616a38cd1aaba65d3a7beace8cd.zip |
add inline versions of udelay/mdelay
-rw-r--r-- | sys/dev/pci/drm/drmP.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h index 77eb5f679bb..854f377190f 100644 --- a/sys/dev/pci/drm/drmP.h +++ b/sys/dev/pci/drm/drmP.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drmP.h,v 1.138 2013/06/11 19:39:09 kettenis Exp $ */ +/* $OpenBSD: drmP.h,v 1.139 2013/07/08 09:43:18 jsg Exp $ */ /* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*- * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com */ @@ -222,6 +222,20 @@ IS_ERR_OR_NULL(const void *ptr) #define DRM_UDELAY(udelay) DELAY(udelay) +static __inline void +udelay(unsigned long usecs) +{ + DELAY(usecs); +} + +static __inline void +mdelay(unsigned long msecs) +{ + int loops = msecs; + while (loops--) + DELAY(1000); +} + #define LOCK_TEST_WITH_RETURN(dev, file_priv) \ do { \ if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) || \ |