Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux Round nsec up for usec d...



details:   https://anonhg.NetBSD.org/src/rev/23986684c2cb
branches:  trunk
changeset: 365206:23986684c2cb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 06 00:30:24 2018 +0000

description:
Round nsec up for usec delay.

XXX pullup

diffstat:

 sys/external/bsd/drm2/include/linux/delay.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9fa726450e46 -r 23986684c2cb sys/external/bsd/drm2/include/linux/delay.h
--- a/sys/external/bsd/drm2/include/linux/delay.h       Mon Aug 06 00:30:15 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/delay.h       Mon Aug 06 00:30:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: delay.h,v 1.4 2016/02/19 21:08:19 skrll Exp $  */
+/*     $NetBSD: delay.h,v 1.5 2018/08/06 00:30:24 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
 ndelay(unsigned int nsec)
 {
 
-       DELAY(nsec / 1000);
+       DELAY((nsec + 999) / 1000);
 }
 
 #endif  /* _LINUX_DELAY_H_ */



Home | Main Index | Thread Index | Old Index