OMAPDSS: reduce vsync/go timeouts
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 25 Feb 2016 22:59:26 +0000 (00:59 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 28 Feb 2016 01:55:13 +0000 (03:55 +0200)
make timeouts closer to normal vsync timing so that the
program still get somewhat similar timing when the display
is turned off (like lid close on pandora)

drivers/video/omap2/dss/manager.c

index 86005bc..b07f817 100644 (file)
@@ -608,7 +608,7 @@ static int omap_dss_unset_device(struct omap_overlay_manager *mgr)
 
 static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr)
 {
 
 static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr)
 {
-       unsigned long timeout = msecs_to_jiffies(500);
+       unsigned long timeout = usecs_to_jiffies(16667 * 2);
        u32 irq;
        int r;
 
        u32 irq;
        int r;
 
@@ -636,7 +636,7 @@ static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr)
 
 static int dss_mgr_wait_for_go(struct omap_overlay_manager *mgr)
 {
 
 static int dss_mgr_wait_for_go(struct omap_overlay_manager *mgr)
 {
-       unsigned long timeout = msecs_to_jiffies(500);
+       unsigned long timeout = usecs_to_jiffies(16667 * 2);
        struct manager_cache_data *mc;
        u32 irq;
        int r;
        struct manager_cache_data *mc;
        u32 irq;
        int r;