diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-06-18 17:26:52 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-06-26 02:48:56 -0400 |
commit | fc4033b2f8b1482022bff3d05505a1b1631bb6de (patch) | |
tree | c84b275968011911d8c96acebe89aa2dd92323bf /arch/powerpc/kernel/setup_32.c | |
parent | 3dfa8773674e16f95f70a0e631e80c69390d04d7 (diff) |
powerpc/85xx: add DOZE/NAP support for e500 core
The e500 core enter DOZE/NAP power-saving modes when the core go to
cpu_idle routine.
The power management default running mode is DOZE, If the user
echo 1 > /proc/sys/kernel/powersave-nap
the system will change to NAP running mode.
Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index bef0be3fd98b..9e83add54290 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -127,6 +127,11 @@ void __init machine_init(unsigned long dt_ptr, unsigned long phys) | |||
127 | ppc_md.power_save = ppc6xx_idle; | 127 | ppc_md.power_save = ppc6xx_idle; |
128 | #endif | 128 | #endif |
129 | 129 | ||
130 | #ifdef CONFIG_E500 | ||
131 | if (cpu_has_feature(CPU_FTR_CAN_DOZE) || | ||
132 | cpu_has_feature(CPU_FTR_CAN_NAP)) | ||
133 | ppc_md.power_save = e500_idle; | ||
134 | #endif | ||
130 | if (ppc_md.progress) | 135 | if (ppc_md.progress) |
131 | ppc_md.progress("id mach(): done", 0x200); | 136 | ppc_md.progress("id mach(): done", 0x200); |
132 | } | 137 | } |