From: amit.daniel@samsung.com (Amit Daniel Kachhap)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: EXYNOS: cpuidle: Allow C1 state only in supported SOC's.
Date: Thu, 14 Mar 2013 11:32:59 +0530 [thread overview]
Message-ID: <1363240979-1939-4-git-send-email-amit.daniel@samsung.com> (raw)
In-Reply-To: <1363240979-1939-1-git-send-email-amit.daniel@samsung.com>
This patch registers the basic C0 state for all exynos SOC's but
limits the C1(AFTR -Arm off top running) state in only the supported
SOC's(ie. EXYNOS 4210, 4212, 4412 and 5250).
Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
---
arch/arm/mach-exynos/cpuidle.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c
index 4fc1f4f..459979a 100644
--- a/arch/arm/mach-exynos/cpuidle.c
+++ b/arch/arm/mach-exynos/cpuidle.c
@@ -177,7 +177,9 @@ static int __init exynos4_init_cpuidle(void)
device->cpu = cpu_id;
/* Support IDLE only */
- if (cpu_id != 0)
+ if (!(soc_is_exynos4210() || soc_is_exynos4212() ||
+ soc_is_exynos4412() || soc_is_exynos5250()) ||
+ cpu_id != 0)
device->state_count = 1;
ret = cpuidle_register_device(device);
--
1.7.1
prev parent reply other threads:[~2013-03-14 6:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 6:02 [PATCH 0/3] ARM: EXYNOS: cpuidle: Several fixes in exynos cpuidle/PM Amit Daniel Kachhap
2013-03-14 6:02 ` [PATCH 1/3] ARM: EXYNOS: Move arm core power down clock to exynos5250 common clock Amit Daniel Kachhap
2013-06-06 6:57 ` [RESEND PATCH " Amit Daniel Kachhap
2013-06-12 3:18 ` amit daniel kachhap
2013-07-24 12:13 ` Kukjin Kim
2013-06-13 12:26 ` Kukjin Kim
2013-08-16 4:52 ` amit daniel kachhap
2013-10-09 9:48 ` Bartlomiej Zolnierkiewicz
2013-10-11 4:27 ` Amit Kachhap
2013-03-14 6:02 ` [PATCH 2/3] ARM: SAMSUNG: Add SAMSUNG_PM config option to select pm Amit Daniel Kachhap
2013-03-14 6:02 ` Amit Daniel Kachhap [this message]
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=1363240979-1939-4-git-send-email-amit.daniel@samsung.com \
--to=amit.daniel@samsung.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).