summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2014-02-02 00:58:36 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2014-02-02 00:58:36 +0000
commit45768120191e1b8b78f90445c24a3212fa146b04 (patch)
treed9a10479b8e232398b5d79a2db5f3e4ac0fcb1bc
parent3ed3bf6c1b292715b9c31b354873e97b50147ddf (diff)
add a simple version of usleep_range() that DELAYs for the min value
-rw-r--r--sys/dev/pci/drm/drmP.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 80702aba32d..6e623e33c38 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drmP.h,v 1.163 2014/01/30 15:10:47 kettenis Exp $ */
+/* $OpenBSD: drmP.h,v 1.164 2014/02/02 00:58:35 jsg Exp $ */
/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
* Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
*/
@@ -330,6 +330,12 @@ udelay(unsigned long usecs)
}
static __inline void
+usleep_range(unsigned long min, unsigned long max)
+{
+ DELAY(min);
+}
+
+static __inline void
mdelay(unsigned long msecs)
{
int loops = msecs;