diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-10 08:11:37 -0400 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-07-23 05:20:20 -0400 |
commit | a17800c70129d5976a52c42f04a16a0f1d9df4b2 (patch) | |
tree | df40741a025dbf7715ba4cb3001b3f0af65592cf /drivers/gpu | |
parent | 3dadef6c96c8aa6e67f83b30504256a0605ee4d6 (diff) |
drm: remove dev->last_switch
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_context.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c index 5cc17f32eb79..224ff965bcf7 100644 --- a/drivers/gpu/drm/drm_context.c +++ b/drivers/gpu/drm/drm_context.c | |||
@@ -251,7 +251,6 @@ static int drm_context_switch_complete(struct drm_device *dev, | |||
251 | struct drm_file *file_priv, int new) | 251 | struct drm_file *file_priv, int new) |
252 | { | 252 | { |
253 | dev->last_context = new; /* PRE/POST: This is the _only_ writer. */ | 253 | dev->last_context = new; /* PRE/POST: This is the _only_ writer. */ |
254 | dev->last_switch = jiffies; | ||
255 | 254 | ||
256 | if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) { | 255 | if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) { |
257 | DRM_ERROR("Lock isn't held after context switch\n"); | 256 | DRM_ERROR("Lock isn't held after context switch\n"); |
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 0dcbbdb6f972..c14fdc1c109b 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -79,7 +79,6 @@ static int drm_setup(struct drm_device * dev) | |||
79 | dev->interrupt_flag = 0; | 79 | dev->interrupt_flag = 0; |
80 | dev->dma_flag = 0; | 80 | dev->dma_flag = 0; |
81 | dev->last_context = 0; | 81 | dev->last_context = 0; |
82 | dev->last_switch = 0; | ||
83 | dev->last_checked = 0; | 82 | dev->last_checked = 0; |
84 | dev->if_version = 0; | 83 | dev->if_version = 0; |
85 | 84 | ||