Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Implement udela...
details: https://anonhg.NetBSD.org/src/rev/2747f2b5eb26
branches: riastradh-drm2
changeset: 788280:2747f2b5eb26
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:03:06 2013 +0000
description:
Implement udelay (DELAY) and msleep (kpause) in <linux/delay.h>.
diffstat:
sys/external/bsd/drm2/include/linux/delay.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 1e90e942633a -r 2747f2b5eb26 sys/external/bsd/drm2/include/linux/delay.h
--- a/sys/external/bsd/drm2/include/linux/delay.h Wed Jul 24 03:02:51 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/delay.h Wed Jul 24 03:03:06 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: delay.h,v 1.1.2.1 2013/07/24 00:33:12 riastradh Exp $ */
+/* $NetBSD: delay.h,v 1.1.2.2 2013/07/24 03:03:06 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,17 @@
#ifndef _LINUX_DELAY_H_
#define _LINUX_DELAY_H_
+#include <sys/param.h>
+#include <sys/proc.h>
+
+#include <machine/param.h>
+
+#define udelay DELAY
+
+static inline void
+msleep(unsigned int msec)
+{
+ (void)kpause("lnxmslep", false, mstohz(msec), NULL);
+}
+
#endif /* _LINUX_DELAY_H_ */
Home |
Main Index |
Thread Index |
Old Index