From patchwork Wed Dec 23 15:47:18 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: abhijitpagare@ti.com X-Patchwork-Id: 69565 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.2) with ESMTP id nBNFlVso020871 for ; Wed, 23 Dec 2009 15:47:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753028AbZLWPra (ORCPT ); Wed, 23 Dec 2009 10:47:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752859AbZLWPra (ORCPT ); Wed, 23 Dec 2009 10:47:30 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:40482 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752794AbZLWPra (ORCPT ); Wed, 23 Dec 2009 10:47:30 -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 nBNFlKp2028730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Dec 2009 09:47:22 -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 nBNFlJnR012126; Wed, 23 Dec 2009 21:17:19 +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 nBNFlJAl022253; Wed, 23 Dec 2009 21:17:19 +0530 Received: (from a0393848@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id nBNFlIMW022251; Wed, 23 Dec 2009 21:17:18 +0530 From: Abhijit Pagare To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Abhijit Pagare , Paul Walmsley Subject: [PATCH 1/1] ARM: OMAP4: PM: Add check for avoiding dependency related update. Date: Wed, 23 Dec 2009 21:17:18 +0530 Message-Id: <1261583238-22187-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 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); }