]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i386: clean up mach_reboot_fixups
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 2 May 2007 17:27:06 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:06 +0000 (19:27 +0200)
The reboot_fixups stuff seems to be a bit of a mess, specifically the
header is in linux/ when its a purely i386-specific piece of code.  I'm
not sure why it has its config option; its only currently needed for
"geode-gx1/cs5530a", so perhaps whatever config option controls that
hardware should enable this?

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/reboot.c
arch/i386/kernel/reboot_fixups.c
include/asm-i386/reboot_fixups.h [moved from include/linux/reboot_fixups.h with 61% similarity]

index 3514b4153f7fd7d1aadc31acce100dd86ed8ad95..8b5ff6e15412bbafb26f7c19a6bae251d798da1f 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/apic.h>
 #include <asm/desc.h>
 #include "mach_reboot.h"
-#include <linux/reboot_fixups.h>
+#include <asm/reboot_fixups.h>
 
 /*
  * Power off function, if any
@@ -316,6 +316,10 @@ void machine_shutdown(void)
 #endif
 }
 
+void __attribute__((weak)) mach_reboot_fixups(void)
+{
+}
+
 void machine_emergency_restart(void)
 {
        if (!reboot_thru_bios) {
index 99aab41a05b0f17d12c07110638699a6ec4360da..2d78d918340f608b9ad6d336fc6bc29b0935fa43 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <asm/delay.h>
 #include <linux/pci.h>
-#include <linux/reboot_fixups.h>
+#include <asm/reboot_fixups.h>
 
 static void cs5530a_warm_reset(struct pci_dev *dev)
 {
similarity index 61%
rename from include/linux/reboot_fixups.h
rename to include/asm-i386/reboot_fixups.h
index 480ea2d489d8bb619742424a2466d9f53791d094..0cb7d87c2b6847019032523fded1e6b4792bfdd4 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef _LINUX_REBOOT_FIXUPS_H
 #define _LINUX_REBOOT_FIXUPS_H
 
-#ifdef CONFIG_X86_REBOOTFIXUPS
 extern void mach_reboot_fixups(void);
-#else
-#define mach_reboot_fixups() ((void)(0))
-#endif
 
 #endif /* _LINUX_REBOOT_FIXUPS_H */