Skip to contentSkip to conversation

x86: unify power/cpu_(32|64) headers

PATCH In review Sergio Luis 1 participant 1 message Apr 4, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 x86: unify power/cpu_(32|64) headers

x86: unify power/cpu_(32|64) headers

First step towards the unification of cpu_32.c and cpu_64.c. This commit unifies the headers of such files, making both of them use the same header files. It also remove the uneeded <module.h>.

---
 arch/x86/power/cpu_32.c |    6 +++++-
 arch/x86/power/cpu_64.c |    8 +++++---
 2 files changed, 10 insertions(+), 4 deletions(-)
arch/x86/power/cpu_32.c +5 -1
index 274d060..e9ceaa0 100644
@@ -7,9 +7,13 @@
  * Copyright (c) 2001 Patrick Mochel <[email protected]>
  */
 
-#include <linux/module.h>
 #include <linux/suspend.h>
+#include <linux/smp.h>
+
+#include <asm/pgtable.h>
+#include <asm/proto.h>
 #include <asm/mtrr.h>
+#include <asm/page.h>
 #include <asm/mce.h>
 #include <asm/xcr.h>
 
arch/x86/power/cpu_64.c +5 -3
index e3b6cf7..d1cf7ae 100644
@@ -8,12 +8,14 @@
  * Copyright (c) 2001 Patrick Mochel <[email protected]>
  */
 
-#include <linux/smp.h>
 #include <linux/suspend.h>
-#include <asm/proto.h>
-#include <asm/page.h>
+#include <linux/smp.h>
+
 #include <asm/pgtable.h>
+#include <asm/proto.h>
 #include <asm/mtrr.h>
+#include <asm/page.h>
+#include <asm/mce.h>
 #include <asm/xcr.h>
 
 static void fix_processor_context(void);