[PATCH] OMAPDSS: DISPC: Use msleep instead of blocking mdelay

Jassi Brar
2012-07-24T14:15:55Z

We have no reason to block in the error handler workqueue, so use msleep.

Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
---
drivers/video/omap2/dss/dispc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index c56a51a..0e3ad44 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -3492,7 +3492,7 @@ static void dispc_error_worker(struct work_struct *work)
ovl->name);
dispc_ovl_enable(ovl->id, false);
dispc_mgr_go(ovl->manager->id);
- mdelay(50);
+ msleep(50);
}
}

@@ -3524,7 +3524,7 @@ static void dispc_error_worker(struct work_struct *work)
}

dispc_mgr_go(mgr->id);
- mdelay(50);
+ msleep(50);

if (enable)
dssdev->driver->enable(dssdev);
--
1.7.4.1