drm: move drm vblank initialization/cleanup to driver load/unload

drm vblank initialization keeps track of the changes in driver-supplied
frame counts across vt switch and mode setting, but only if you let it by
not tearing down the drm vblank structure.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Keith Packard
2008-11-18 09:30:25 -08:00
committed by Dave Airlie
parent 6133047aa6
commit 52440211dc
15 changed files with 45 additions and 21 deletions

View File

@@ -305,6 +305,8 @@ static void drm_cleanup(struct drm_device * dev)
return;
}
drm_vblank_cleanup(dev);
drm_lastclose(dev);
if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) &&