--- linux-2.6.0-test1/arch/i386/kernel/nmi.c.orig 2003-07-13 20:34:40.000000000 -0700 +++ linux-2.6.0-test1/arch/i386/kernel/nmi.c 2003-07-17 17:26:45.000000000 -0700 @@ -162,9 +162,15 @@ case X86_VENDOR_INTEL: switch (boot_cpu_data.x86) { case 6: + if (boot_cpu_data.x86_model > 0xd) + break; + wrmsr(MSR_P6_EVNTSEL0, 0, 0); break; case 15: + if (boot_cpu_data.x86_model > 0x3) + break; + wrmsr(MSR_P4_IQ_CCCR0, 0, 0); wrmsr(MSR_P4_CRU_ESCR0, 0, 0); break; @@ -348,9 +354,19 @@ case X86_VENDOR_INTEL: switch (boot_cpu_data.x86) { case 6: + if (boot_cpu_data.x86_model > 0xd) { + printk (KERN_INFO "Performance Counter support for this CPU model not yet added.\n"); + return; + } + setup_p6_watchdog(); break; case 15: + if (boot_cpu_data.x86_model > 0x3) { + printk (KERN_INFO "Performance Counter support for this CPU model not yet added.\n"); + return; + } + if (!setup_p4_watchdog()) return; break; --- linux-2.6.0-test1/arch/i386/oprofile/nmi_int.c.orig 2003-07-17 17:20:30.000000000 -0700 +++ linux-2.6.0-test1/arch/i386/oprofile/nmi_int.c 2003-07-17 17:21:06.000000000 -0700 @@ -285,6 +285,9 @@ { __u8 cpu_model = current_cpu_data.x86_model; + if (cpu_model > 0xd) + return 0; + if (cpu_model > 5) { nmi_ops.cpu_type = "i386/piii"; } else if (cpu_model > 2) {