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: 1231281 Return-Path: X-Original-To: patchwork-linux-fbdev@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 C2CADDF25A for ; Tue, 24 Jul 2012 14:04:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754538Ab2GXOEJ (ORCPT ); Tue, 24 Jul 2012 10:04:09 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:51800 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754342Ab2GXOEI (ORCPT ); Tue, 24 Jul 2012 10:04:08 -0400 Received: by pbbrp8 with SMTP id rp8so12732356pbb.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=PgmDmSivWKEDv9LRxe3Wad5gHx6oVxyikn5/XoZMDMZhEyd0pHlVEYBKVhGlQ2fXCN +QVrL3Q1XhRlOx69QJTW+IXD9tBYQ7UXucV9y/+mIQlN9G32e2ORlMQ0HNXfVGyg8lrL QY5ujChpQFQc3+Vc1MWD0Ho/WBL8qw0Vh7UKyDrDoIxSXM2rHBNmZ7p+dmO+dSXdwDrH fKtdVD39dz+vtxlgIGPjOgAgp6RbN34W5tOET4Wgtv2qzxrhxqAa55UHPXoz0GrHmllX MAgUpEks8GED4TnRJWgweHdM/UrC0UbKa58DiFMc9PtcAvoBwuKDvTY+VNjqBLUkzVZn 3DKg== 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: ALoCoQnZApQKZnbo3pv7ek4eMQ1T5IO/b73jx+J6emFzT/gT1DmMZODDk0XjmjQVpp+jNKKcO1z1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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);