Skip to content

Commit b0cb1a1

Browse files
rjwysockiLinus Torvalds
authored andcommitted
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>
1 parent 6c8dca5 commit b0cb1a1

33 files changed

Lines changed: 47 additions & 47 deletions

‎arch/i386/Kconfig.debug‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ config DEBUG_STACK_USAGE
3636
This option will slow down process creation somewhat.
3737

3838
comment "Page alloc debug is incompatible with Software Suspend on i386"
39-
depends on DEBUG_KERNEL && SOFTWARE_SUSPEND
39+
depends on DEBUG_KERNEL && HIBERNATION
4040

4141
config DEBUG_PAGEALLOC
4242
bool "Debug page memory allocations"
43-
depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND && !HUGETLBFS
43+
depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS
4444
help
4545
Unmap pages from the kernel linear mapping after free_pages().
4646
This results in a large slowdown, but helps to find certain types

‎arch/i386/kernel/e820.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static int __init request_standard_resources(void)
321321

322322
subsys_initcall(request_standard_resources);
323323

324-
#if defined(CONFIG_PM) && defined(CONFIG_SOFTWARE_SUSPEND)
324+
#if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION)
325325
/**
326326
* e820_mark_nosave_regions - Find the ranges of physical addresses that do not
327327
* correspond to e820 RAM areas and mark the corresponding pages as nosave for

‎arch/i386/mm/init.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static void __init pagetable_init (void)
432432
paravirt_pagetable_setup_done(pgd_base);
433433
}
434434

435-
#if defined(CONFIG_SOFTWARE_SUSPEND) || defined(CONFIG_ACPI)
435+
#if defined(CONFIG_HIBERNATION) || defined(CONFIG_ACPI)
436436
/*
437437
* Swap suspend & friends need this for resume because things like the intel-agp
438438
* driver might have split up a kernel 4MB mapping.

‎arch/i386/power/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
obj-$(CONFIG_PM) += cpu.o
2-
obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o suspend.o
2+
obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o

‎arch/powerpc/Kconfig.debug‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ config DEBUG_STACK_USAGE
2020

2121
config DEBUG_PAGEALLOC
2222
bool "Debug page memory allocations"
23-
depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND
23+
depends on DEBUG_KERNEL && !HIBERNATION
2424
help
2525
Unmap pages from the kernel linear mapping after free_pages().
2626
This results in a large slowdown, but helps to find certain types

‎arch/powerpc/configs/lite5200_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ CONFIG_PM=y
196196
# CONFIG_PM_LEGACY is not set
197197
# CONFIG_PM_DEBUG is not set
198198
# CONFIG_PM_SYSFS_DEPRECATED is not set
199-
# CONFIG_SOFTWARE_SUSPEND is not set
199+
# CONFIG_HIBERNATION is not set
200200
CONFIG_SECCOMP=y
201201
# CONFIG_WANT_DEVICE_TREE is not set
202202
CONFIG_ISA_DMA_API=y

‎arch/powerpc/configs/pmac32_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ CONFIG_PM=y
218218
CONFIG_PM_DEBUG=y
219219
# CONFIG_DISABLE_CONSOLE_SUSPEND is not set
220220
CONFIG_PM_SYSFS_DEPRECATED=y
221-
CONFIG_SOFTWARE_SUSPEND=y
221+
CONFIG_HIBERNATION=y
222222
CONFIG_PM_STD_PARTITION=""
223223
CONFIG_APM_EMULATION=y
224224
CONFIG_SECCOMP=y

‎arch/powerpc/kernel/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o
3737
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
3838
obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o
3939
obj-$(CONFIG_TAU) += tau_6xx.o
40-
obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o suspend.o
41-
obj32-$(CONFIG_SOFTWARE_SUSPEND) += swsusp_32.o
42-
obj64-$(CONFIG_SOFTWARE_SUSPEND) += swsusp_64.o swsusp_asm64.o
40+
obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o
41+
obj32-$(CONFIG_HIBERNATION) += swsusp_32.o
42+
obj64-$(CONFIG_HIBERNATION) += swsusp_64.o swsusp_asm64.o
4343
obj32-$(CONFIG_MODULES) += module_32.o
4444

4545
ifeq ($(CONFIG_PPC_MERGE),y)

‎arch/ppc/configs/TQM8540_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ CONFIG_BINFMT_ELF=y
136136
# CONFIG_BINFMT_MISC is not set
137137
# CONFIG_CMDLINE_BOOL is not set
138138
# CONFIG_PM is not set
139-
# CONFIG_SOFTWARE_SUSPEND is not set
139+
# CONFIG_HIBERNATION is not set
140140
CONFIG_SECCOMP=y
141141
CONFIG_ISA_DMA_API=y
142142

‎arch/ppc/configs/TQM8541_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ CONFIG_BINFMT_ELF=y
138138
# CONFIG_BINFMT_MISC is not set
139139
# CONFIG_CMDLINE_BOOL is not set
140140
# CONFIG_PM is not set
141-
# CONFIG_SOFTWARE_SUSPEND is not set
141+
# CONFIG_HIBERNATION is not set
142142
CONFIG_SECCOMP=y
143143
CONFIG_ISA_DMA_API=y
144144

0 commit comments

Comments
 (0)