Commit c5759124 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Thomas Gleixner

x86 PM: rename 32-bit files in arch/x86/power

Rename cpu.c, suspend.c and swsusp.S in arch/x86/power to cpu_32.c,
hibernate_32.c and hibernate_asm_32.S, respectively, and update the
purpose and copyright information in these files.

Update the Makefile in arch/x86/power to reflect the above changes.
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent cf7700fe
...@@ -2,6 +2,6 @@ ifeq ($(CONFIG_X86_64),y) ...@@ -2,6 +2,6 @@ ifeq ($(CONFIG_X86_64),y)
obj-$(CONFIG_PM) += suspend_64.o obj-$(CONFIG_PM) += suspend_64.o
obj-$(CONFIG_HIBERNATION) += hibernate_asm_64.o obj-$(CONFIG_HIBERNATION) += hibernate_asm_64.o
else else
obj-$(CONFIG_PM) += cpu.o obj-$(CONFIG_PM) += cpu_32.o
obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o obj-$(CONFIG_HIBERNATION) += hibernate_32.o hibernate_asm_32.o
endif endif
...@@ -40,7 +40,7 @@ static void __save_processor_state(struct saved_context *ctxt) ...@@ -40,7 +40,7 @@ static void __save_processor_state(struct saved_context *ctxt)
savesegment(ss, ctxt->ss); savesegment(ss, ctxt->ss);
/* /*
* control registers * control registers
*/ */
ctxt->cr0 = read_cr0(); ctxt->cr0 = read_cr0();
ctxt->cr2 = read_cr2(); ctxt->cr2 = read_cr2();
......
/* /*
* Suspend support specific for i386 - temporary page tables * Hibernation support specific for i386 - temporary page tables
* *
* Distribute under GPLv2 * Distribute under GPLv2
* *
......
.text .text
/* Originally gcc generated, modified by hand /*
*
* This may not use any stack, nor any variable that is not "NoSave": * This may not use any stack, nor any variable that is not "NoSave":
* *
* Its rewriting one kernel image with another. What is stack in "old" * Its rewriting one kernel image with another. What is stack in "old"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment