From patchwork Tue Jul 24 14:03:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 1231291 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1D3B7DF25A for ; Tue, 24 Jul 2012 14:04:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754450Ab2GXOEJ (ORCPT ); Tue, 24 Jul 2012 10:04:09 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:46191 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754404Ab2GXOEI (ORCPT ); Tue, 24 Jul 2012 10:04:08 -0400 Received: by pbbrp8 with SMTP id rp8so12732357pbb.19 for ; Tue, 24 Jul 2012 07:04:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=9Thw3X4fFae7MoLHegFnd6Jph0XtF7bd+IX3YCW5Pd0=; b=BWdGtoBZs41sVr6j8EDYImxenaqCHCla4UHDo7ckqKWUJ/QG4gqM4nzixx4h2Ij0cf fiIaPGdlVBLGn3/GOUftUdHMMvfMTgpvKvoqAT58dozgvYUN3Dtb87Zzc8XrwwJvbZFN D89jkJ01+4qXLq/nAo8JDQQNPl6A8GqxnjpMv6uq/2eLq3g+g1xVjctJlD0hTzKIUto8 rCXLUWx/+V21sKqs6dkunWtzxlL1CxfCYjj+B7hgsq8flDJ0SwEiv0OJl82LbSyzpPyu 5epT5dhy3L8xSsTQ1FfxXKiHsUdMbAz+05JqWa987ntekCqiFjWK/YPb1z/17CU6CDb9 1NXQ== Received: by 10.68.220.104 with SMTP id pv8mr44780564pbc.119.1343138647924; Tue, 24 Jul 2012 07:04:07 -0700 (PDT) Received: from localhost.localdomain ([122.172.226.97]) by mx.google.com with ESMTPS id oy8sm12232065pbc.52.2012.07.24.07.04.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 07:04:07 -0700 (PDT) From: Jassi Brar To: tomi.valkeinen@ti.com, a0393947@ti.com Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Jassi Brar Subject: [PATCH] OMAPDSS: DISPC: Use msleep instead of blocking mdelay Date: Tue, 24 Jul 2012 19:33:55 +0530 Message-Id: <1343138635-2802-1-git-send-email-jaswinder.singh@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnQ/qdMo+yuhRc7Q7uJb9Bz3RqrHrfncxkW2E1INpvR6HCJAK+ck+FkRAfek8FTesLO/Id3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org We have no reason to block in the error handler workqueue, so use msleep. Signed-off-by: Jassi Brar --- 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);