diff options
Diffstat (limited to 'kernel/power/Kconfig')
-rw-r--r-- | kernel/power/Kconfig | 65 |
1 files changed, 35 insertions, 30 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 8e186c678149..ef9b802738a5 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
@@ -44,9 +44,30 @@ config PM_VERBOSE | |||
44 | ---help--- | 44 | ---help--- |
45 | This option enables verbose messages from the Power Management code. | 45 | This option enables verbose messages from the Power Management code. |
46 | 46 | ||
47 | config CAN_PM_TRACE | ||
48 | def_bool y | ||
49 | depends on PM_DEBUG && PM_SLEEP && EXPERIMENTAL | ||
50 | |||
47 | config PM_TRACE | 51 | config PM_TRACE |
52 | bool | ||
53 | help | ||
54 | This enables code to save the last PM event point across | ||
55 | reboot. The architecture needs to support this, x86 for | ||
56 | example does by saving things in the RTC, see below. | ||
57 | |||
58 | The architecture specific code must provide the extern | ||
59 | functions from <linux/resume-trace.h> as well as the | ||
60 | <asm/resume-trace.h> header with a TRACE_RESUME() macro. | ||
61 | |||
62 | The way the information is presented is architecture- | ||
63 | dependent, x86 will print the information during a | ||
64 | late_initcall. | ||
65 | |||
66 | config PM_TRACE_RTC | ||
48 | bool "Suspend/resume event tracing" | 67 | bool "Suspend/resume event tracing" |
49 | depends on PM_DEBUG && X86 && PM_SLEEP && EXPERIMENTAL | 68 | depends on CAN_PM_TRACE |
69 | depends on X86 | ||
70 | select PM_TRACE | ||
50 | default n | 71 | default n |
51 | ---help--- | 72 | ---help--- |
52 | This enables some cheesy code to save the last PM event point in the | 73 | This enables some cheesy code to save the last PM event point in the |
@@ -63,7 +84,8 @@ config PM_TRACE | |||
63 | 84 | ||
64 | config PM_SLEEP_SMP | 85 | config PM_SLEEP_SMP |
65 | bool | 86 | bool |
66 | depends on SUSPEND_SMP_POSSIBLE || HIBERNATION_SMP_POSSIBLE | 87 | depends on SMP |
88 | depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE | ||
67 | depends on PM_SLEEP | 89 | depends on PM_SLEEP |
68 | select HOTPLUG_CPU | 90 | select HOTPLUG_CPU |
69 | default y | 91 | default y |
@@ -73,46 +95,29 @@ config PM_SLEEP | |||
73 | depends on SUSPEND || HIBERNATION | 95 | depends on SUSPEND || HIBERNATION |
74 | default y | 96 | default y |
75 | 97 | ||
76 | config SUSPEND_UP_POSSIBLE | ||
77 | bool | ||
78 | depends on (X86 && !X86_VOYAGER) || PPC || ARM || BLACKFIN || MIPS \ | ||
79 | || SUPERH || FRV | ||
80 | depends on !SMP | ||
81 | default y | ||
82 | |||
83 | config SUSPEND_SMP_POSSIBLE | ||
84 | bool | ||
85 | depends on (X86 && !X86_VOYAGER) \ | ||
86 | || (PPC && (PPC_PSERIES || PPC_PMAC)) || ARM | ||
87 | depends on SMP | ||
88 | default y | ||
89 | |||
90 | config SUSPEND | 98 | config SUSPEND |
91 | bool "Suspend to RAM and standby" | 99 | bool "Suspend to RAM and standby" |
92 | depends on PM | 100 | depends on PM && ARCH_SUSPEND_POSSIBLE |
93 | depends on SUSPEND_UP_POSSIBLE || SUSPEND_SMP_POSSIBLE | ||
94 | default y | 101 | default y |
95 | ---help--- | 102 | ---help--- |
96 | Allow the system to enter sleep states in which main memory is | 103 | Allow the system to enter sleep states in which main memory is |
97 | powered and thus its contents are preserved, such as the | 104 | powered and thus its contents are preserved, such as the |
98 | suspend-to-RAM state (i.e. the ACPI S3 state). | 105 | suspend-to-RAM state (e.g. the ACPI S3 state). |
99 | 106 | ||
100 | config HIBERNATION_UP_POSSIBLE | 107 | config SUSPEND_FREEZER |
101 | bool | 108 | bool "Enable freezer for suspend to RAM/standby" \ |
102 | depends on X86 || PPC64_SWSUSP || PPC32 | 109 | if ARCH_WANTS_FREEZER_CONTROL || BROKEN |
103 | depends on !SMP | 110 | depends on SUSPEND |
104 | default y | 111 | default y |
112 | help | ||
113 | This allows you to turn off the freezer for suspend. If this is | ||
114 | done, no tasks are frozen for suspend to RAM/standby. | ||
105 | 115 | ||
106 | config HIBERNATION_SMP_POSSIBLE | 116 | Turning OFF this setting is NOT recommended! If in doubt, say Y. |
107 | bool | ||
108 | depends on (X86 && !X86_VOYAGER) || PPC64_SWSUSP | ||
109 | depends on SMP | ||
110 | default y | ||
111 | 117 | ||
112 | config HIBERNATION | 118 | config HIBERNATION |
113 | bool "Hibernation (aka 'suspend to disk')" | 119 | bool "Hibernation (aka 'suspend to disk')" |
114 | depends on PM && SWAP | 120 | depends on PM && SWAP && ARCH_HIBERNATION_POSSIBLE |
115 | depends on HIBERNATION_UP_POSSIBLE || HIBERNATION_SMP_POSSIBLE | ||
116 | ---help--- | 121 | ---help--- |
117 | Enable the suspend to disk (STD) functionality, which is usually | 122 | Enable the suspend to disk (STD) functionality, which is usually |
118 | called "hibernation" in user interfaces. STD checkpoints the | 123 | called "hibernation" in user interfaces. STD checkpoints the |