Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / asm-i386 / mach-default / mach_reboot.h
index 521e227..a955e57 100644 (file)
@@ -19,10 +19,18 @@ static inline void kb_wait(void)
 static inline void mach_reboot(void)
 {
        int i;
-       for (i = 0; i < 100; i++) {
+       for (i = 0; i < 10; i++) {
                kb_wait();
                udelay(50);
-               outb(0xfe, 0x64);         /* pulse reset low */
+               outb(0x60, 0x64);       /* write Controller Command Byte */
+               udelay(50);
+               kb_wait();
+               udelay(50);
+               outb(0x14, 0x60);       /* set "System flag" */
+               udelay(50);
+               kb_wait();
+               udelay(50);
+               outb(0xfe, 0x64);       /* pulse reset low */
                udelay(50);
        }
 }