]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vboxvideo: Skip currrent crtc when updating crtcs
authorHans de Goede <hdegoede@redhat.com>
Tue, 11 Sep 2018 07:15:42 +0000 (09:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 11:22:59 +0000 (13:22 +0200)
commit0838de60bf9b6ca20cff6aacdafbced14121a4b9
tree83ef9158e012b6a8c2b4508b37aaad5be519c0ca
parent3b79d19f76150c26ef2fcefe1faf52c85f0ba604
staging: vboxvideo: Skip currrent crtc when updating crtcs

In vbox_crtc_set_base_and_mode() we update all the crtcs when the
single_framebuffer setting changes, including the one on which
vbox_crtc_set_base_and_mode() was called, so we end up doing
vbox_do_modeset() on it twice. This commit skips the crtc on which
we are updating in the loop to update the other crtcs.

This commit also removes the vbox_set_view() call from the loop,
vbox_set_view() does not depend on the single_framebuffer setting and it
was being called on the passed in crtc parameter and not on the crtci
local iterator value (typo), so it was a no-op already.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vboxvideo/vbox_mode.c