mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
4ed0ce3d0b
commit
00185e6670
3 changed files with 17 additions and 1 deletions
|
@ -994,7 +994,7 @@ void drm_vblank_put(struct drm_device *dev, int crtc)
|
|||
|
||||
/* Last user schedules interrupt disable */
|
||||
if (atomic_dec_and_test(&vblank->refcount)) {
|
||||
if (drm_vblank_offdelay < 0)
|
||||
if (dev->vblank_disable_immediate || drm_vblank_offdelay < 0)
|
||||
vblank_disable_fn((unsigned long)vblank);
|
||||
else if (drm_vblank_offdelay > 0)
|
||||
mod_timer(&vblank->disable_timer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue