projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c048c98
)
drm: vblank: Fix vblank timestamp update
author
Laurent Pinchart
<
[email protected]
>
Thu, 29 Jun 2017 12:37:20 +0000
(15:37 +0300)
committer
Daniel Vetter
<
[email protected]
>
Thu, 29 Jun 2017 12:40:47 +0000
(14:40 +0200)
Commit
3fcdcb270936
("drm/vblank: Switch to bool in_vblank_irq in
get_vblank_timestamp") inverted a condition by mistake that resulted in
vblank timestamps always being 0 on hardware without a vblank counter.
Fix it.
Fixes: 3fcdcb270936 ("drm/vblank: Switch to bool in_vblank_irq in get_vblank_timestamp")
Suggested-by: Ville Syrjälä <
[email protected]
>
Signed-off-by: Laurent Pinchart <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/drm_vblank.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_vblank.c
b/drivers/gpu/drm/drm_vblank.c
index 463e4d81fb0ddb9807b84d1039288795c4842187..e9f33cd805dd6bfaa746800d2d67e53ec578ae18 100644
(file)
--- a/
drivers/gpu/drm/drm_vblank.c
+++ b/
drivers/gpu/drm/drm_vblank.c
@@
-242,7
+242,7
@@
static void drm_update_vblank_count(struct drm_device *dev, unsigned int pipe,
* Otherwise reinitialize delayed at next vblank interrupt and assign 0
* for now, to mark the vblanktimestamp as invalid.
*/
- if (!rc && in_vblank_irq)
+ if (!rc &&
!
in_vblank_irq)
t_vblank = (struct timeval) {0, 0};
store_vblank(dev, pipe, diff, &t_vblank, cur_vblank);