diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-07-29 17:24:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-29 19:45:38 -0400 |
commit | b0cb1a19d05b8ea8611a9ef48a17fe417f1832e6 (patch) | |
tree | 895fe53e8dc4fc59d05b963ac079f6ff759ad0fb /kernel | |
parent | 6c8dca5d53f95009d4fff00195bf38f277dc4366 (diff) |
Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION
Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION to avoid
confusion (among other things, with CONFIG_SUSPEND introduced in the
next patch).
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/Kconfig | 6 | ||||
-rw-r--r-- | kernel/power/Makefile | 2 | ||||
-rw-r--r-- | kernel/power/main.c | 2 | ||||
-rw-r--r-- | kernel/power/power.h | 2 | ||||
-rw-r--r-- | kernel/sys.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index c1a106d87d90..c2582a4a5373 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
@@ -72,8 +72,8 @@ config PM_TRACE | |||
72 | CAUTION: this option will cause your machine's real-time clock to be | 72 | CAUTION: this option will cause your machine's real-time clock to be |
73 | set to an invalid time after a resume. | 73 | set to an invalid time after a resume. |
74 | 74 | ||
75 | config SOFTWARE_SUSPEND | 75 | config HIBERNATION |
76 | bool "Software Suspend (Hibernation)" | 76 | bool "Hibernation" |
77 | depends on PM && SWAP && (((X86 || PPC64_SWSUSP) && (!SMP || SUSPEND_SMP)) || ((FRV || PPC32) && !SMP)) | 77 | depends on PM && SWAP && (((X86 || PPC64_SWSUSP) && (!SMP || SUSPEND_SMP)) || ((FRV || PPC32) && !SMP)) |
78 | ---help--- | 78 | ---help--- |
79 | Enable the suspend to disk (STD) functionality, which is usually | 79 | Enable the suspend to disk (STD) functionality, which is usually |
@@ -112,7 +112,7 @@ config SOFTWARE_SUSPEND | |||
112 | 112 | ||
113 | config PM_STD_PARTITION | 113 | config PM_STD_PARTITION |
114 | string "Default resume partition" | 114 | string "Default resume partition" |
115 | depends on SOFTWARE_SUSPEND | 115 | depends on HIBERNATION |
116 | default "" | 116 | default "" |
117 | ---help--- | 117 | ---help--- |
118 | The default resume partition is the partition that the suspend- | 118 | The default resume partition is the partition that the suspend- |
diff --git a/kernel/power/Makefile b/kernel/power/Makefile index 38725f526afc..c6b03764512f 100644 --- a/kernel/power/Makefile +++ b/kernel/power/Makefile | |||
@@ -5,6 +5,6 @@ endif | |||
5 | 5 | ||
6 | obj-y := main.o process.o console.o | 6 | obj-y := main.o process.o console.o |
7 | obj-$(CONFIG_PM_LEGACY) += pm.o | 7 | obj-$(CONFIG_PM_LEGACY) += pm.o |
8 | obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o disk.o snapshot.o swap.o user.o | 8 | obj-$(CONFIG_HIBERNATION) += swsusp.o disk.o snapshot.o swap.o user.o |
9 | 9 | ||
10 | obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o | 10 | obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o |
diff --git a/kernel/power/main.c b/kernel/power/main.c index 32147b57c3bf..cfba6987ae7d 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
@@ -292,7 +292,7 @@ static ssize_t state_show(struct kset *kset, char *buf) | |||
292 | if (pm_states[i] && valid_state(i)) | 292 | if (pm_states[i] && valid_state(i)) |
293 | s += sprintf(s,"%s ", pm_states[i]); | 293 | s += sprintf(s,"%s ", pm_states[i]); |
294 | } | 294 | } |
295 | #ifdef CONFIG_SOFTWARE_SUSPEND | 295 | #ifdef CONFIG_HIBERNATION |
296 | s += sprintf(s, "%s\n", "disk"); | 296 | s += sprintf(s, "%s\n", "disk"); |
297 | #else | 297 | #else |
298 | if (s != buf) | 298 | if (s != buf) |
diff --git a/kernel/power/power.h b/kernel/power/power.h index 5f24c786f8ec..9080914796f5 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -13,7 +13,7 @@ struct swsusp_info { | |||
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | #ifdef CONFIG_SOFTWARE_SUSPEND | 16 | #ifdef CONFIG_HIBERNATION |
17 | /* | 17 | /* |
18 | * Keep some memory free so that I/O operations can succeed without paging | 18 | * Keep some memory free so that I/O operations can succeed without paging |
19 | * [Might this be more than 4 MB?] | 19 | * [Might this be more than 4 MB?] |
diff --git a/kernel/sys.c b/kernel/sys.c index 14f8adcfffd9..449b81b98b3d 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -954,7 +954,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user | |||
954 | unlock_kernel(); | 954 | unlock_kernel(); |
955 | return -EINVAL; | 955 | return -EINVAL; |
956 | 956 | ||
957 | #ifdef CONFIG_SOFTWARE_SUSPEND | 957 | #ifdef CONFIG_HIBERNATION |
958 | case LINUX_REBOOT_CMD_SW_SUSPEND: | 958 | case LINUX_REBOOT_CMD_SW_SUSPEND: |
959 | { | 959 | { |
960 | int ret = hibernate(); | 960 | int ret = hibernate(); |