Skip to content

Commit ea3f0ef

Browse files
dhnkrndanvet
authored andcommitted
drm/doc: Fix documentation for _vblank_restore().
No code changes, fixes doc build warnings and polish some doc text. Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20180221073908.4500-1-dhinakaran.pandiyan@intel.com
1 parent 7b3b61b commit ea3f0ef

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

drivers/gpu/drm/drm_vblank.c

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,12 +1238,15 @@ void drm_crtc_vblank_on(struct drm_crtc *crtc)
12381238
EXPORT_SYMBOL(drm_crtc_vblank_on);
12391239

12401240
/**
1241-
* drm_vblank_restore - estimated vblanks using timestamps and update it.
1241+
* drm_vblank_restore - estimate missed vblanks and update vblank count.
1242+
* @dev: DRM device
1243+
* @pipe: CRTC index
12421244
*
12431245
* Power manamement features can cause frame counter resets between vblank
1244-
* disable and enable. Drivers can then use this function in their
1245-
* &drm_crtc_funcs.enable_vblank implementation to estimate the vblanks since
1246-
* the last &drm_crtc_funcs.disable_vblank.
1246+
* disable and enable. Drivers can use this function in their
1247+
* &drm_crtc_funcs.enable_vblank implementation to estimate missed vblanks since
1248+
* the last &drm_crtc_funcs.disable_vblank using timestamps and update the
1249+
* vblank counter.
12471250
*
12481251
* This function is the legacy version of drm_crtc_vblank_restore().
12491252
*/
@@ -1284,11 +1287,14 @@ void drm_vblank_restore(struct drm_device *dev, unsigned int pipe)
12841287
EXPORT_SYMBOL(drm_vblank_restore);
12851288

12861289
/**
1287-
* drm_crtc_vblank_restore - estimate vblanks using timestamps and update it.
1290+
* drm_crtc_vblank_restore - estimate missed vblanks and update vblank count.
1291+
* @crtc: CRTC in question
1292+
*
12881293
* Power manamement features can cause frame counter resets between vblank
1289-
* disable and enable. Drivers can then use this function in their
1290-
* &drm_crtc_funcs.enable_vblank implementation to estimate the vblanks since
1291-
* the last &drm_crtc_funcs.disable_vblank.
1294+
* disable and enable. Drivers can use this function in their
1295+
* &drm_crtc_funcs.enable_vblank implementation to estimate missed vblanks since
1296+
* the last &drm_crtc_funcs.disable_vblank using timestamps and update the
1297+
* vblank counter.
12921298
*/
12931299
void drm_crtc_vblank_restore(struct drm_crtc *crtc)
12941300
{

0 commit comments

Comments
 (0)