Module Name: src
Committed By: riastradh
Date: Wed Jul 24 02:08:33 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/dist/drm [riastradh-drm2]: drm_context.c
Log Message:
Ifdef out the one reference to (assignment of) drm_context last_switch.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.2 -r1.1.1.1.2.3 \
src/sys/external/bsd/drm2/dist/drm/drm_context.c
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/dist/drm/drm_context.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_context.c:1.1.1.1.2.2 src/sys/external/bsd/drm2/dist/drm/drm_context.c:1.1.1.1.2.3
--- src/sys/external/bsd/drm2/dist/drm/drm_context.c:1.1.1.1.2.2 Tue Jul 23 21:28:21 2013
+++ src/sys/external/bsd/drm2/dist/drm/drm_context.c Wed Jul 24 02:08:33 2013
@@ -262,7 +262,10 @@ static int drm_context_switch_complete(s
struct drm_file *file_priv, int new)
{
dev->last_context = new; /* PRE/POST: This is the _only_ writer. */
+#ifndef __NetBSD__
+ /* XXX Nobody seems to use last_switch. */
dev->last_switch = jiffies;
+#endif
if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) {
DRM_ERROR("Lock isn't held after context switch\n");