Created
June 3, 2012 09:40
-
-
Save steven676/2862775 to your computer and use it in GitHub Desktop.
disable CPU idle states below C1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c | |
index da13f2d..6d6603e 100644 | |
--- a/arch/arm/mach-omap2/cpuidle34xx.c | |
+++ b/arch/arm/mach-omap2/cpuidle34xx.c | |
@@ -47,6 +47,7 @@ | |
static struct cpuidle_params cpuidle_params_table[] = { | |
/* C1 */ | |
{2 + 2, 5, 1}, | |
+#if 0 | |
/* C2 */ | |
{10 + 10, 30, 1}, | |
/* C3 */ | |
@@ -59,6 +60,7 @@ static struct cpuidle_params cpuidle_params_table[] = { | |
{3000 + 8500, 15000, 1}, | |
/* C7 */ | |
{10000 + 30000, 300000, 1}, | |
+#endif | |
}; | |
#define OMAP3_NUM_STATES ARRAY_SIZE(cpuidle_params_table) | |
@@ -349,6 +351,7 @@ int __init omap3_idle_init(void) | |
cx->mpu_state = PWRDM_POWER_ON; | |
cx->core_state = PWRDM_POWER_ON; | |
+#if 0 | |
/* C2 . MPU WFI + Core inactive */ | |
cx = _fill_cstate(dev, 1, "MPU ON + CORE ON"); | |
cx->mpu_state = PWRDM_POWER_ON; | |
@@ -388,6 +391,7 @@ int __init omap3_idle_init(void) | |
} | |
cx->mpu_state = PWRDM_POWER_OFF; | |
cx->core_state = PWRDM_POWER_OFF; | |
+#endif | |
dev->state_count = OMAP3_NUM_STATES; | |
if (cpuidle_register_device(dev)) { | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment