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/8988fe877c7e
branches: trunk
changeset: 795736:8988fe877c7e
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 bb7fa9c2588a -r 8988fe877c7e 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