From: Ranjani Vaidyanathan Date: Fri, 16 Dec 2011 22:13:45 +0000 (-0600) Subject: ENGR00170520: MX6-Enable WAIT mode by default. X-Git-Tag: v3.0.35-fsl~1735 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ee13ed6c8a2ba5ac0f4e46fa620018f10cdc571b;p=karo-tx-linux.git ENGR00170520: MX6-Enable WAIT mode by default. WAIT mode is enabled by default with this commit. Adding "enable_wait_mode=off" to the command line will prevent the system from entering WAIT mode. Signed-off-by: Ranjani Vaidyanathan --- diff --git a/arch/arm/mach-mx6/cpu.c b/arch/arm/mach-mx6/cpu.c index 46e22f1138e4..81f691cb35b5 100644 --- a/arch/arm/mach-mx6/cpu.c +++ b/arch/arm/mach-mx6/cpu.c @@ -38,7 +38,7 @@ extern void mx6_wait(void); struct cpu_op *(*get_cpu_op)(int *op); -bool enable_wait_mode; +bool enable_wait_mode = true; u32 arm_max_freq = CPU_AT_1GHz; void __iomem *gpc_base; @@ -154,7 +154,13 @@ postcore_initcall(post_cpu_init); static int __init enable_wait(char *p) { - enable_wait_mode = true; + if (memcmp(p, "on", 2) == 0) { + enable_wait_mode = true; + p += 2; + } else if (memcmp(p, "off", 3) == 0) { + enable_wait_mode = false; + p += 3; + } return 0; } early_param("enable_wait_mode", enable_wait);