Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Ifdef out the one re...



details:   https://anonhg.NetBSD.org/src/rev/b99b33842999
branches:  riastradh-drm2
changeset: 788081:b99b33842999
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:08:33 2013 +0000

description:
Ifdef out the one reference to (assignment of) drm_context last_switch.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_context.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r f234320411de -r b99b33842999 sys/external/bsd/drm2/dist/drm/drm_context.c
--- a/sys/external/bsd/drm2/dist/drm/drm_context.c      Wed Jul 24 02:08:17 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_context.c      Wed Jul 24 02:08:33 2013 +0000
@@ -262,7 +262,10 @@
                                       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");



Home | Main Index | Thread Index | Old Index