gfx: drv: Remove useless global variable
authorPauli Nieminen <pauli.nieminen@linux.intel.com>
Tue, 3 Jan 2012 15:36:42 +0000 (17:36 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:23 +0000 (12:29 +0300)
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/psb_drv.c
drivers/staging/mrst/drv/psb_drv.h
drivers/staging/mrst/drv/psb_irq.c

index e5a2d0e..5addf5f 100644 (file)
@@ -64,7 +64,6 @@ int drm_psb_debug;
 /*EXPORT_SYMBOL(drm_psb_debug); */
 static int drm_psb_trap_pagefaults;
 
-int drm_psb_disable_vsync = 1;
 int drm_psb_no_fb;
 int drm_psb_force_pipeb;
 int drm_msvdx_pmpolicy = PSB_PMPOLICY_POWERDOWN;
index 2d45c06..d324bfc 100644 (file)
@@ -1184,7 +1184,6 @@ struct backlight_device * psb_get_backlight_device(void);
 
 extern int drm_psb_debug;
 extern int drm_psb_no_fb;
-extern int drm_psb_disable_vsync;
 extern int drm_topaz_sbuswa;
 
 #define PSB_DEBUG_GENERAL(_fmt, _arg...) \
index 902e459..082cd9d 100644 (file)
@@ -792,7 +792,6 @@ int psb_enable_vblank(struct drm_device *dev, int pipe)
 
        spin_lock_irqsave(&dev_priv->irqmask_lock, irqflags);
 
-       drm_psb_disable_vsync = 0;
        mid_enable_pipe_event(dev_priv, pipe);
        psb_enable_pipestat(dev_priv, pipe, PIPE_VBLANK_INTERRUPT_ENABLE);
 
@@ -817,7 +816,6 @@ void psb_disable_vblank(struct drm_device *dev, int pipe)
 
        spin_lock_irqsave(&dev_priv->irqmask_lock, irqflags);
 
-       drm_psb_disable_vsync = 1;
        mid_disable_pipe_event(dev_priv, pipe);
        psb_disable_pipestat(dev_priv, pipe, PIPE_VBLANK_INTERRUPT_ENABLE);