OMAPDSS: switch FBIO_WAITFORVSYNC to the new code
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 25 Feb 2016 23:27:03 +0000 (01:27 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 28 Feb 2016 01:55:13 +0000 (03:55 +0200)
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

drivers/video/omap2/omapfb/omapfb-ioctl.c

index 6355dfe..99d7662 100644 (file)
@@ -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");