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:
c30e11f
)
drm/atomic: Use KMS VBLANK API
author
Thierry Reding
<
[email protected]
>
Wed, 12 Aug 2015 15:00:35 +0000
(17:00 +0200)
committer
Daniel Vetter
<
[email protected]
>
Wed, 12 Aug 2015 15:41:30 +0000
(17:41 +0200)
Instead of using the legacy VBLANK API, use the new KMS API. This is
part of an effort to convert all existing users so that the KMS API can
be changed to properly use per-CRTC data.
Signed-off-by: Thierry Reding <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/drm_atomic_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_atomic_helper.c
b/drivers/gpu/drm/drm_atomic_helper.c
index 96e08e940ed0bfef3281f2d44792a0ec98005ae1..52dbeedcdcc86d23a51de7b75d6d91c393421cb5 100644
(file)
--- a/
drivers/gpu/drm/drm_atomic_helper.c
+++ b/
drivers/gpu/drm/drm_atomic_helper.c
@@
-958,7
+958,7
@@
drm_atomic_helper_wait_for_vblanks(struct drm_device *dev,
continue;
old_crtc_state->enable = true;
- old_crtc_state->last_vblank_count = drm_
vblank_count(dev, i
);
+ old_crtc_state->last_vblank_count = drm_
crtc_vblank_count(crtc
);
}
for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) {
@@
-967,7
+967,7
@@
drm_atomic_helper_wait_for_vblanks(struct drm_device *dev,
ret = wait_event_timeout(dev->vblank[i].queue,
old_crtc_state->last_vblank_count !=
- drm_
vblank_count(dev, i
),
+ drm_
crtc_vblank_count(crtc
),
msecs_to_jiffies(50));
drm_crtc_vblank_put(crtc);