diff options
author | Victor Gallardo <vgallardo@apm.com> | 2010-10-08 06:25:27 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2010-11-29 10:05:06 -0500 |
commit | d164f6d4f9108126f69ba2963cf6fb7ef4ba9232 (patch) | |
tree | 9f0f97180ee4f7486974c657588e8ee65074fcc2 /arch/powerpc/Kconfig | |
parent | 46f5221049bb46b0188aad6b6dfab5dbc778be22 (diff) |
powerpc/4xx: Add suspend and idle support
Add suspend/resume support for 4xx compatible CPUs.
See /sys/power/state for available power states configured in.
Add two different idle states (idle-wait and idle-doze) controlled via sysfs.
Default is idle-wait.
cat /sys/devices/system/cpu/cpu0/idle
[wait] doze
To save additional power, use idle-doze.
echo doze > /sys/devices/system/cpu/cpu0/idle
cat /sys/devices/system/cpu/cpu0/idle
wait [doze]
Signed-off-by: Victor Gallardo <vgallardo@apm.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 06d742c3fbcf..e16b4988f825 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -212,7 +212,7 @@ config ARCH_HIBERNATION_POSSIBLE | |||
212 | config ARCH_SUSPEND_POSSIBLE | 212 | config ARCH_SUSPEND_POSSIBLE |
213 | def_bool y | 213 | def_bool y |
214 | depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \ | 214 | depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \ |
215 | PPC_85xx || PPC_86xx || PPC_PSERIES | 215 | PPC_85xx || PPC_86xx || PPC_PSERIES || 44x || 40x |
216 | 216 | ||
217 | config PPC_DCR_NATIVE | 217 | config PPC_DCR_NATIVE |
218 | bool | 218 | bool |
@@ -598,13 +598,11 @@ config EXTRA_TARGETS | |||
598 | 598 | ||
599 | If unsure, leave blank | 599 | If unsure, leave blank |
600 | 600 | ||
601 | if !44x || BROKEN | ||
602 | config ARCH_WANTS_FREEZER_CONTROL | 601 | config ARCH_WANTS_FREEZER_CONTROL |
603 | def_bool y | 602 | def_bool y |
604 | depends on ADB_PMU | 603 | depends on ADB_PMU |
605 | 604 | ||
606 | source kernel/power/Kconfig | 605 | source kernel/power/Kconfig |
607 | endif | ||
608 | 606 | ||
609 | config SECCOMP | 607 | config SECCOMP |
610 | bool "Enable seccomp to safely compute untrusted bytecode" | 608 | bool "Enable seccomp to safely compute untrusted bytecode" |
@@ -685,6 +683,15 @@ config FSL_PMC | |||
685 | Freescale MPC85xx/MPC86xx power management controller support | 683 | Freescale MPC85xx/MPC86xx power management controller support |
686 | (suspend/resume). For MPC83xx see platforms/83xx/suspend.c | 684 | (suspend/resume). For MPC83xx see platforms/83xx/suspend.c |
687 | 685 | ||
686 | config PPC4xx_CPM | ||
687 | bool | ||
688 | default y | ||
689 | depends on SUSPEND && (44x || 40x) | ||
690 | help | ||
691 | PPC4xx Clock Power Management (CPM) support (suspend/resume). | ||
692 | It also enables support for two different idle states (idle-wait | ||
693 | and idle-doze). | ||
694 | |||
688 | config 4xx_SOC | 695 | config 4xx_SOC |
689 | bool | 696 | bool |
690 | 697 | ||