drm: kill dev->timer
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Aug 2010 20:53:32 +0000 (22:53 +0200)
committerDave Airlie <airlied@redhat.com>
Sun, 29 Aug 2010 23:44:54 +0000 (09:44 +1000)
Totally unused.

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

index a35a41002c3351f9301a2694a04d6d17db564304..5ff75a3a6b9d5113cdfa628ed1cf624ee5a47ad5 100644 (file)
@@ -180,8 +180,6 @@ int drm_lastclose(struct drm_device * dev)
 
        mutex_lock(&dev->struct_mutex);
 
-       del_timer(&dev->timer);
-
        /* Clear AGP information */
        if (drm_core_has_AGP(dev) && dev->agp &&
                        !drm_core_check_feature(dev, DRIVER_MODESET)) {
index f797ae9da77c4397373e2e9c81715a8f68eb85bf..cdc89ee042cc22b83ebe610ddd67d01cf86ea048 100644 (file)
@@ -241,7 +241,6 @@ int drm_fill_in_dev(struct drm_device *dev,
 
        spin_lock_init(&dev->count_lock);
        spin_lock_init(&dev->event_lock);
-       init_timer(&dev->timer);
        mutex_init(&dev->struct_mutex);
        mutex_init(&dev->ctxlist_mutex);
 
index ffe6035cf471b0c7e89255c326bea83d99764a5a..757b63a23b14739a9c76c8d99c005935eb7aecd7 100644 (file)
@@ -964,7 +964,6 @@ struct drm_device {
        __volatile__ long context_flag; /**< Context swapping flag */
        __volatile__ long interrupt_flag; /**< Interruption handler flag */
        __volatile__ long dma_flag;     /**< DMA dispatch flag */
-       struct timer_list timer;        /**< Timer for delaying ctx switch */
        wait_queue_head_t context_wait; /**< Processes waiting on ctx switch */
        int last_checked;               /**< Last context checked for DMA */
        int last_context;               /**< Last current context */