Message ID | 1297857860-3713-1-git-send-email-rnayak@ti.com (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Kevin Hilman |
Headers | show |
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 125f565..1e722a0 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -569,6 +569,10 @@ static int option_get(void *data, u64 *val) *val = *option; +#ifndef CONFIG_CPU_IDLE + if (option == &sleep_while_idle) + pr_warn("CONFIG_CPU_IDLE is not enabled\n"); +#endif return 0; } @@ -581,6 +585,11 @@ static int option_set(void *data, u64 val) *option = val; +#ifndef CONFIG_CPU_IDLE + if (option == &sleep_while_idle) + pr_warn("CONFIG_CPU_IDLE is not enabled\n"); +#endif + if (option == &enable_off_mode) { if (val) omap_pm_enable_off_mode();