diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 05:35:10 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 20:43:29 -0500 |
commit | 99c09e745d078b630dbb3ea2895eaa597f1cebc4 (patch) | |
tree | 2d6ad24830e2e55a042c6fe52e70ff72e1fea74f /drivers/gpu/drm/drm_fops.c | |
parent | 5952fba501b928f214f64a7a9c461ae2cd5c3f45 (diff) |
drm: remove dev->vma_count
This is just used for a debugfs file, and we can easily reconstruct
this number by just walking the list twice. Which isn't really bad for
a debugfs file anyway.
So let's rip this out.
There's the other issue that the dev->vmalist itself is a bit useless,
since that can be reconstructed with all the memory mapping
information from proc. But remove that is a different topic entirely.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 330f3dd8e9d0..7f2af9aca038 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -391,8 +391,6 @@ static void drm_legacy_dev_reinit(struct drm_device *dev) | |||
391 | if (drm_core_check_feature(dev, DRIVER_MODESET)) | 391 | if (drm_core_check_feature(dev, DRIVER_MODESET)) |
392 | return; | 392 | return; |
393 | 393 | ||
394 | atomic_set(&dev->vma_count, 0); | ||
395 | |||
396 | dev->sigdata.lock = NULL; | 394 | dev->sigdata.lock = NULL; |
397 | 395 | ||
398 | dev->context_flag = 0; | 396 | dev->context_flag = 0; |