提交 a8af7898 编写于 作者: M Magnus Damm 提交者: Linus Torvalds

pm: rework includes, remove arch ifdefs

Make the following header file changes:

 - remove arch ifdefs and asm/suspend.h from linux/suspend.h
 - add asm/suspend.h to disk.c (for arch_prepare_suspend())
 - add linux/io.h to swsusp.c (for ioremap())
 - x86 32/64 bit compile fixes
Signed-off-by: NMagnus Damm <damm@igel.co.jp>
Cc: Paul Mundt <lethal@linux-sh.org>
Acked-by: N"Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 5f0e3da6
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/bootparam.h> #include <asm/bootparam.h>
#include <asm/elf.h> #include <asm/elf.h>
#include <asm/suspend.h>
#include <xen/interface/xen.h> #include <xen/interface/xen.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/ia32.h> #include <asm/ia32.h>
#include <asm/bootparam.h> #include <asm/bootparam.h>
#include <asm/suspend.h>
#include <xen/interface/xen.h> #include <xen/interface/xen.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <asm/mtrr.h> #include <asm/mtrr.h>
#include <asm/mce.h> #include <asm/mce.h>
#include <asm/xcr.h> #include <asm/xcr.h>
#include <asm/suspend.h>
static struct saved_context saved_context; static struct saved_context saved_context;
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/mtrr.h> #include <asm/mtrr.h>
#include <asm/xcr.h> #include <asm/xcr.h>
#include <asm/suspend.h>
static void fix_processor_context(void); static void fix_processor_context(void);
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <asm/page.h> #include <asm/page.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/mtrr.h> #include <asm/mtrr.h>
#include <asm/suspend.h>
/* References to section boundaries */ /* References to section boundaries */
extern const void __nosave_begin, __nosave_end; extern const void __nosave_begin, __nosave_end;
......
#ifndef _LINUX_SUSPEND_H #ifndef _LINUX_SUSPEND_H
#define _LINUX_SUSPEND_H #define _LINUX_SUSPEND_H
#if defined(CONFIG_X86) || defined(CONFIG_FRV) || defined(CONFIG_PPC32) || defined(CONFIG_PPC64)
#include <asm/suspend.h>
#endif
#include <linux/swap.h> #include <linux/swap.h>
#include <linux/notifier.h> #include <linux/notifier.h>
#include <linux/init.h> #include <linux/init.h>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/console.h> #include <linux/console.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/freezer.h> #include <linux/freezer.h>
#include <asm/suspend.h>
#include "power.h" #include "power.h"
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include <linux/io.h>
#include "power.h" #include "power.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册