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 In msleep use mdelay if ...
details: https://anonhg.NetBSD.org/src/rev/9172af3ca4be
branches: trunk
changeset: 343664:9172af3ca4be
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Feb 19 21:08:19 2016 +0000
description:
In msleep use mdelay if cold
diffstat:
sys/external/bsd/drm2/include/linux/delay.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r a30683519a9f -r 9172af3ca4be sys/external/bsd/drm2/include/linux/delay.h
--- a/sys/external/bsd/drm2/include/linux/delay.h Fri Feb 19 20:45:21 2016 +0000
+++ b/sys/external/bsd/drm2/include/linux/delay.h Fri Feb 19 21:08:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: delay.h,v 1.3 2014/07/16 20:56:25 riastradh Exp $ */
+/* $NetBSD: delay.h,v 1.4 2016/02/19 21:08:19 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -66,7 +66,8 @@
static inline void
msleep(unsigned int msec)
{
- if ((hz < 1000) && (msec < (1000/hz)))
+ if (cold ||
+ ((hz < 1000) && (msec < (1000/hz))))
mdelay(msec);
else
(void)kpause("lnxmslep", false, mstohz(msec), NULL);
Home |
Main Index |
Thread Index |
Old Index