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/dist/drm/i915 Replace cpu_relax() by D...
details: https://anonhg.NetBSD.org/src/rev/951c7edfb9c4
branches: trunk
changeset: 328975:951c7edfb9c4
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 26 14:55:43 2014 +0000
description:
Replace cpu_relax() by DELAY(1) or DELAY(1000) to wait us/ms.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_drv.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 272e5b4ad7fd -r 951c7edfb9c4 sys/external/bsd/drm2/dist/drm/i915/intel_drv.h
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_drv.h Sat Apr 26 14:15:08 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_drv.h Sat Apr 26 14:55:43 2014 +0000
@@ -56,7 +56,7 @@
if ((W) && drm_can_sleep()) { \
msleep(W); \
} else { \
- cpu_relax(); \
+ DELAY(1000); \
} \
} \
} \
@@ -81,7 +81,7 @@
ret__ = -ETIMEDOUT; \
break; \
} \
- cpu_relax(); \
+ DELAY(1); \
} \
} \
ret__; \
Home |
Main Index |
Thread Index |
Old Index