Commit b8ba9914 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Misc reboot.c bits

- remove unneeded includes (lots of)
- Some Dell folks noted that the switch to realmode needs
  to be a wbinvd instead of an invd on some boxes.
  This has been in -dj for eons, and has had no ill effect.
parent c3f5edfe
...@@ -2,44 +2,11 @@ ...@@ -2,44 +2,11 @@
* linux/arch/i386/kernel/reboot.c * linux/arch/i386/kernel/reboot.c
*/ */
#define __KERNEL_SYSCALLS__
#include <stdarg.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/user.h>
#include <linux/a.out.h>
#include <linux/interrupt.h>
#include <linux/config.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/mc146818rtc.h> #include <linux/mc146818rtc.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/ldt.h>
#include <asm/processor.h>
#include <asm/i387.h>
#include <asm/desc.h>
#ifdef CONFIG_MATH_EMULATION
#include <asm/math_emu.h>
#endif
#include <linux/irq.h>
#include <linux/err.h>
/* /*
* Power off function, if any * Power off function, if any
...@@ -148,7 +115,7 @@ static unsigned char real_mode_switch [] = ...@@ -148,7 +115,7 @@ static unsigned char real_mode_switch [] =
0x66, 0x0f, 0x20, 0xc3, /* movl %cr0,%ebx */ 0x66, 0x0f, 0x20, 0xc3, /* movl %cr0,%ebx */
0x66, 0x81, 0xe3, 0x00, 0x00, 0x00, 0x60, /* andl $0x60000000,%ebx */ 0x66, 0x81, 0xe3, 0x00, 0x00, 0x00, 0x60, /* andl $0x60000000,%ebx */
0x74, 0x02, /* jz f */ 0x74, 0x02, /* jz f */
0x0f, 0x08, /* invd */ 0x0f, 0x09, /* wbinvd */
0x24, 0x10, /* f: andb $0x10,al */ 0x24, 0x10, /* f: andb $0x10,al */
0x66, 0x0f, 0x22, 0xc0 /* movl %eax,%cr0 */ 0x66, 0x0f, 0x22, 0xc0 /* movl %eax,%cr0 */
}; };
......
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