x86 PM: move 64-bit hibernation files to arch/x86/power

Move arch/x86/kernel/suspend_64.c to arch/x86/power .

Move arch/x86/kernel/suspend_asm_64.S to arch/x86/power
as hibernate_asm_64.S .

Update purpose and copyright information in
arch/x86/power/suspend_64.c and
arch/x86/power/hibernate_asm_64.S .

Update the Makefiles in arch/x86, arch/x86/kernel and
arch/x86/power to reflect the above changes.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by Rafael J. Wysocki and committed by Thomas Gleixner cf7700fe 9b706aee

+20 -9
+3 -1
arch/x86/Makefile
··· 191 191 # must be linked after kernel/ 192 192 drivers-$(CONFIG_OPROFILE) += arch/x86/oprofile/ 193 193 194 - ifeq ($(CONFIG_X86_32),y) 194 + # suspend and hibernation support 195 195 drivers-$(CONFIG_PM) += arch/x86/power/ 196 + 197 + ifeq ($(CONFIG_X86_32),y) 196 198 drivers-$(CONFIG_FB) += arch/x86/video/ 197 199 endif 198 200
-2
arch/x86/kernel/Makefile
··· 84 84 obj-y += genapic_64.o genapic_flat_64.o 85 85 obj-$(CONFIG_X86_PM_TIMER) += pmtimer_64.o 86 86 obj-$(CONFIG_AUDIT) += audit_64.o 87 - obj-$(CONFIG_PM) += suspend_64.o 88 - obj-$(CONFIG_HIBERNATION) += suspend_asm_64.o 89 87 90 88 obj-$(CONFIG_GART_IOMMU) += pci-gart_64.o aperture_64.o 91 89 obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o
+3 -2
arch/x86/kernel/suspend_64.c arch/x86/power/suspend_64.c
··· 1 1 /* 2 - * Suspend support specific for i386. 2 + * Suspend and hibernation support for x86-64 3 3 * 4 4 * Distribute under GPLv2 5 5 * 6 + * Copyright (c) 2007 Rafael J. Wysocki <rjw@sisk.pl> 6 7 * Copyright (c) 2002 Pavel Machek <pavel@suse.cz> 7 8 * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org> 8 9 */ ··· 64 63 mtrr_save_fixed_ranges(NULL); 65 64 66 65 /* 67 - * control registers 66 + * control registers 68 67 */ 69 68 rdmsrl(MSR_EFER, ctxt->efer); 70 69 ctxt->cr0 = read_cr0();
+7 -2
arch/x86/kernel/suspend_asm_64.S arch/x86/power/hibernate_asm_64.S
··· 1 - /* Copyright 2004,2005 Pavel Machek <pavel@suse.cz>, Andi Kleen <ak@suse.de>, Rafael J. Wysocki <rjw@sisk.pl> 1 + /* 2 + * Hibernation support for x86-64 2 3 * 3 4 * Distribute under GPLv2. 5 + * 6 + * Copyright 2007 Rafael J. Wysocki <rjw@sisk.pl> 7 + * Copyright 2005 Andi Kleen <ak@suse.de> 8 + * Copyright 2004 Pavel Machek <pavel@suse.cz> 4 9 * 5 10 * swsusp_arch_resume must not use any stack or any nonlocal variables while 6 11 * copying pages: ··· 14 9 * image could very well be data page in "new" image, and overwriting 15 10 * your own stack under you is bad idea. 16 11 */ 17 - 12 + 18 13 .text 19 14 #include <linux/linkage.h> 20 15 #include <asm/segment.h>
+7 -2
arch/x86/power/Makefile
··· 1 - obj-$(CONFIG_PM) += cpu.o 2 - obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o 1 + ifeq ($(CONFIG_X86_64),y) 2 + obj-$(CONFIG_PM) += suspend_64.o 3 + obj-$(CONFIG_HIBERNATION) += hibernate_asm_64.o 4 + else 5 + obj-$(CONFIG_PM) += cpu.o 6 + obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o 7 + endif