drm: delay vblank cleanup until after driver unload

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, April 20, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/b78315f051de8d207bead90470aa216c0617572b
Commit:     b78315f051de8d207bead90470aa216c0617572b
Parent:     79b9517a33a283c5d9db875c263670ed1e055f7e
Author:     Jesse Barnes <jbarnes@virtuousgeek.org>
AuthorDate: Fri Mar 26 11:07:16 2010 -0700
Committer:  Dave Airlie <airlied@redhat.com>
CommitDate: Tue Apr 20 14:22:38 2010 +1000

    drm: delay vblank cleanup until after driver unload
    
    Drivers may use vblank calls now (e.g. drm_vblank_off) in their unload
    paths, so don't clean up the vblank related structures until after
    driver unload.
    
    Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
    Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/drm_stub.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c
index ad73e14..543e79c 100644
--- a/drivers/gpu/drm/drm_stub.c
+++ b/drivers/gpu/drm/drm_stub.c
@@ -515,8 +515,6 @@ void drm_put_dev(struct drm_device *dev)
 	}
 	driver = dev->driver;
 
-	drm_vblank_cleanup(dev);
-
 	drm_lastclose(dev);
 
 	if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) &&
@@ -536,6 +534,8 @@ void drm_put_dev(struct drm_device *dev)
 		dev->agp = NULL;
 	}
 
+	drm_vblank_cleanup(dev);
+
 	list_for_each_entry_safe(r_list, list_temp, &dev->maplist, head)
 		drm_rmmap(dev, r_list->map);
 	drm_ht_remove(&dev->map_hash);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
drm: delay vblank cleanup until after driver unload, Linux Kernel Mailing ..., (Tue Apr 20, 9:59 am)