From: Grazvydas Ignotas Date: Thu, 25 Feb 2016 23:27:03 +0000 (+0200) Subject: OMAPDSS: switch FBIO_WAITFORVSYNC to the new code X-Git-Tag: sz_174~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=12eb2c057dbca65f088b03b2729bcc2aa000553b OMAPDSS: switch FBIO_WAITFORVSYNC to the new code Same as OMAPFB_WAITFORVSYNC_FRAME from previous commit, just without the adaptive part. The benefits are: - no unnecessary irq reprogramming before/after each wait - fbdev lock release on wait so that multiple programs can wait - better display detection when the output is cloned to multiple displays and one of them goes off --- diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index 6355dfeb3d8b..99d7662030c5 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c @@ -844,7 +844,8 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) r = -ENODEV; break; } - /* FALLTHROUGH */ + r = omapfb_do_vsync(fbi, display, NULL, true); + break; case OMAPFB_WAITFORVSYNC: DBG("ioctl WAITFORVSYNC\n");