[PATCH] Clean up Machine Check init.

From: Dave Jones (davej@suse.de)
Date: Mon Nov 19 2001 - 08:50:26 EST


Linus.
 Patch below removes multiple calls to mcheck_init from vendor
specific setup, as mcheck_init() does vendor checking itself
and does 'the right thing' on chips without it.

hand-editted old diff, still applies to pre6.

regards,
Dave.

diff -urN --exclude-from=/home/davej/.exclude linux-2.4.14-pre6/arch/i386/kernel/setup.c linux-2.4.13-ac6/arch/i386/kernel/setup.c
--- linux-2.4.14-pre6/arch/i386/kernel/setup.c Sat Nov 3 00:08:02 2001
+++ linux-2.4.13-ac6/arch/i386/kernel/setup.c Sat Nov 3 00:24:55 2001
@@ -1251,7 +1309,6 @@
                         break;

                 case 6: /* An Athlon/Duron. We can trust the BIOS probably */
- mcheck_init(c);
                         break;
         }

@@ -1879,7 +1936,6 @@
                                 c->x86_cache_size = (cc>>24)+(dd>>24);
                         }
                         sprintf( c->x86_model_id, "WinChip %s", name );
- mcheck_init(c);
                         break;

                 case 6:
@@ -2165,7 +2231,6 @@
                 strcpy(c->x86_model_id, p);

         /* Enable MCA if available */
- mcheck_init(c);
 }

 void __init get_cpu_vendor(struct cpuinfo_x86 *c)
@@ -2546,7 +2610,7 @@
                 init_rise(c);
                 break;
         }
-
+
         printk(KERN_DEBUG "CPU: After vendor init, caps: %08x %08x %08x %08x\n",
                c->x86_capability[0],
                c->x86_capability[1],
@@ -2573,6 +2637,9 @@
         /* Disable the PN if appropriate */
         squash_the_stupid_serial_number(c);

+ /* Init Machine Check Exception if available. */
+ mcheck_init(c);
+
         /* If the model name is still unset, do table lookup. */
         if ( !c->x86_model_id[0] ) {
                 char *p;

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:20 EST