Module Name: src
Committed By: riastradh
Date: Mon Aug 6 00:30:24 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/include/linux: delay.h
Log Message:
Round nsec up for usec delay.
XXX pullup
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/include/linux/delay.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/delay.h
diff -u src/sys/external/bsd/drm2/include/linux/delay.h:1.4 src/sys/external/bsd/drm2/include/linux/delay.h:1.5
--- src/sys/external/bsd/drm2/include/linux/delay.h:1.4 Fri Feb 19 21:08:19 2016
+++ src/sys/external/bsd/drm2/include/linux/delay.h Mon Aug 6 00:30:24 2018
@@ -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 @@ static inline void
ndelay(unsigned int nsec)
{
- DELAY(nsec / 1000);
+ DELAY((nsec + 999) / 1000);
}
#endif /* _LINUX_DELAY_H_ */