linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: rnayak@ti.com (Rajendra Nayak)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] OMAP2+: PM: Enable all clk autoidle only if CONFIG_PM
Date: Wed, 16 Feb 2011 14:56:35 +0530	[thread overview]
Message-ID: <mailman.145.1297849114.1530.linux-arm-kernel@lists.infradead.org> (raw)

Autoidle for all clocks is disabled during clock
framework initialization.
Enable them here (late in the boot process) only
if CONFIG_PM is enabled.

While here, also update the comment to remove
the TODO's which are already addressed.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
---
 arch/arm/mach-omap2/pm.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index b507702..f888986 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -262,13 +262,14 @@ static int __init omap2_common_pm_late_init(void)
 	/* Smartreflex device init */
 	omap_devinit_smartreflex();

+#ifdef CONFIG_PM
 	/*
-	 * Set all OMAP3/4 DPLLs to autoidle.
-	 * XXX TODO: Add all the iclk autoidles in here as well,
-	 * the OMAP2 DPLL, the OMAP2 APLLs, and the AUTOEXTCLKMODE
-	 * control here too.
+	 * Set all OMAP2/3/4 DPLLs to autoidle.
+	 * Set OMAP2 APLLs, and the AUTOEXTCLKMODE to autoidle.
+	 * Set all the iclk autoidle,
 	 */
 	omap_clk_enable_autoidle_all();
+#endif

 	return 0;
 }
-- 
1.7.0.4

--0016368e29f72cfb64049c6308f9
Content-Type: application/octet-stream; 
	name="0001-OMAP2-PM-Enable-all-clk-autoidle-only-if-CONFIG_PM.patch"
Content-Disposition: attachment; 
	filename="0001-OMAP2-PM-Enable-all-clk-autoidle-only-if-CONFIG_PM.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: cae10b18c864105_0.1

RnJvbSA1NzJiZjk1Y2Y0YWEzZDNhMWM3MzI1NGY2N2Uy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X2luaXQodm9pZCkKIAkvKiBTbWFydHJlZmxleCBkZXZpY2UgaW5p
dCAqLwogCW9tYXBfZGV2aW5pdF9zbWFydHJlZmxleCgpOwogCisjaWZkZWYgQ09ORklHX1BNCiAJ
LyoKLQkgKiBTZXQgYWxsIE9NQVAzLzQgRFBMTHMgdG8gYXV0b2lkbGUuCi0JICogWFhYIFRPRE86
IEFkZCBhbGwgdGhlIGljbGsgYXV0b2lkbGVzIGluIGhlcmUgYXMgd2VsbCwKLQkgKiB0aGUgT01B
UDIgRFBMTCwgdGhlIE9NQVAyIEFQTExzLCBhbmQgdGhlIEFVVE9FWFRDTEtNT0RFCi0JICogY29u
dHJvbCBoZXJlIHRvby4KKwkgKiBTZXQgYWxsIE9NQVAyLzMvNCBEUExMcyB0byBhdXRvaWRsZS4K
KwkgKiBTZXQgT01BUDIgQVBMTHMsIGFuZCB0aGUgQVVUT0VYVENMS01PREUgdG8gYXV0b2lkbGUu
CisJICogU2V0IGFsbCB0aGUgaWNsayBhdXRvaWRsZSwKIAkgKi8KIAlvbWFwX2Nsa19lbmFibGVf
YXV0b2lkbGVfYWxsKCk7CisjZW5kaWYKIAogCXJldHVybiAwOwogfQotLSAKMS43LjAuNAoK
--0016368e29f72cfb64049c6308f9--

                 reply	other threads:[~2011-02-16  9:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mailman.145.1297849114.1530.linux-arm-kernel@lists.infradead.org \
    --to=rnayak@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).