drm: remove dev->last_switch
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Jul 2013 12:11:37 +0000 (14:11 +0200)
committerDave Airlie <airlied@gmail.com>
Tue, 23 Jul 2013 09:20:20 +0000 (19:20 +1000)
Only ever assigned in the context code for real, with no readers
anywhere. Remove it.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/drm_context.c
drivers/gpu/drm/drm_fops.c
include/drm/drmP.h

index 5cc17f32eb794e8f5f728d9925e64ccc8826f723..224ff965bcf7de624c3b62b6db153bda090ea4a9 100644 (file)
@@ -251,7 +251,6 @@ static int drm_context_switch_complete(struct drm_device *dev,
                                       struct drm_file *file_priv, int new)
 {
        dev->last_context = new;        /* PRE/POST: This is the _only_ writer. */
-       dev->last_switch = jiffies;
 
        if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) {
                DRM_ERROR("Lock isn't held after context switch\n");
index 0dcbbdb6f97234dfdc8b44cf7ccc4a41d7413230..c14fdc1c109bcdbddb3c3cd6fd3adc33da6404f4 100644 (file)
@@ -79,7 +79,6 @@ static int drm_setup(struct drm_device * dev)
        dev->interrupt_flag = 0;
        dev->dma_flag = 0;
        dev->last_context = 0;
-       dev->last_switch = 0;
        dev->last_checked = 0;
        dev->if_version = 0;
 
index 44991331310026a2b0afe56da0c2d8bc442677a0..089e82028e7ad0335406e7f1e882d7a068f2336a 100644 (file)
@@ -1135,7 +1135,6 @@ struct drm_device {
        __volatile__ long dma_flag;     /**< DMA dispatch flag */
        int last_checked;               /**< Last context checked for DMA */
        int last_context;               /**< Last current context */
-       unsigned long last_switch;      /**< jiffies at last context switch */
        /*@} */
 
        struct work_struct work;