From patchwork Wed Feb 10 08:12:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: abhijitpagare@ti.com X-Patchwork-Id: 78297 X-Patchwork-Delegate: paul@pwsan.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1A87JUd019250 for ; Wed, 10 Feb 2010 08:12:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752608Ab0BJIMS (ORCPT ); Wed, 10 Feb 2010 03:12:18 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:43639 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514Ab0BJIMS (ORCPT ); Wed, 10 Feb 2010 03:12:18 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o1A8C6Ix031514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Feb 2010 02:12:08 -0600 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o1A8C44c004596; Wed, 10 Feb 2010 13:42:04 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id o1A8C4MI006460; Wed, 10 Feb 2010 13:42:04 +0530 Received: (from a0393848@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id o1A8C3LS006456; Wed, 10 Feb 2010 13:42:03 +0530 From: Abhijit Pagare To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Abhijit Pagare , Paul Walmsley Subject: [PATCH] ARM: OMAP4 clock domain: Add check for avoiding dependency related update. Date: Wed, 10 Feb 2010 13:42:03 +0530 Message-Id: <1265789523-6413-1-git-send-email-abhijitpagare@ti.com> X-Mailer: git-send-email 1.5.5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 10 Feb 2010 08:12:19 +0000 (UTC) diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index 8c9e78c..6ec25ee 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c @@ -507,8 +507,9 @@ void omap2_clkdm_allow_idle(struct clockdomain *clkdm) pr_debug("clockdomain: enabling automatic idle transitions for %s\n", clkdm->name); - if (atomic_read(&clkdm->usecount) > 0) - _clkdm_add_autodeps(clkdm); + if (!cpu_is_omap44xx()) + if (atomic_read(&clkdm->usecount) > 0) + _clkdm_add_autodeps(clkdm); _omap2_clkdm_set_hwsup(clkdm, 1); @@ -540,8 +541,9 @@ void omap2_clkdm_deny_idle(struct clockdomain *clkdm) _omap2_clkdm_set_hwsup(clkdm, 0); - if (atomic_read(&clkdm->usecount) > 0) - _clkdm_del_autodeps(clkdm); + if (!cpu_is_omap44xx()) + if (atomic_read(&clkdm->usecount) > 0) + _clkdm_del_autodeps(clkdm); }