diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-08-06 07:49:54 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-06 16:39:28 -0400 |
commit | 00185e667009dda907887a4f84fbd02c6e651a49 (patch) | |
tree | 2f41e86d1ecf52e826a5958e559894cb40ab6efb /include/drm | |
parent | 4ed0ce3d0bccd74416ba6beb33a8a79d1617e97b (diff) |
drm: Add dev->vblank_disable_immediate flag
Add a flag to drm_device which will cause the vblank code to bypass the
disable timer and always disable the vblank interrupt immediately when
the last reference is dropped.
v2: Add some notes about the flag to the kernel doc
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 24b32d453c60..17a5c10474bd 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1074,6 +1074,16 @@ struct drm_device { | |||
1074 | */ | 1074 | */ |
1075 | bool vblank_disable_allowed; | 1075 | bool vblank_disable_allowed; |
1076 | 1076 | ||
1077 | /* | ||
1078 | * If true, vblank interrupt will be disabled immediately when the | ||
1079 | * refcount drops to zero, as opposed to via the vblank disable | ||
1080 | * timer. | ||
1081 | * This can be set to true it the hardware has a working vblank | ||
1082 | * counter and the driver uses drm_vblank_on() and drm_vblank_off() | ||
1083 | * appropriately. | ||
1084 | */ | ||
1085 | bool vblank_disable_immediate; | ||
1086 | |||
1077 | /* array of size num_crtcs */ | 1087 | /* array of size num_crtcs */ |
1078 | struct drm_vblank_crtc *vblank; | 1088 | struct drm_vblank_crtc *vblank; |
1079 | 1089 | ||