[PATCH} Enable OProfile on Pentium D

From: Santos, Jose Renato G
Date: Fri Jun 16 2006 - 12:51:50 EST


Hi

OProfile does not recognize Pentium D (Intel cpu model 6 for p4 family)
This prevents Oprofile from using hw performance counters on those CPUs
This patch enables Oprofile on those CPUs.

Please cc me on your response as I do not subscribe to the list
Thanks

Signed-off-by: Jose Renato Santos <jsantos@xxxxxxxxxx>

---------------------------

diff -aur linux-2.6.16-orig/arch/i386/oprofile/nmi_int.c
linux-2.6.16/arch/i386/oprofile/nmi_int.c
--- linux-2.6.16-orig/arch/i386/oprofile/nmi_int.c 2006-06-16
09:35:38.000000000 -0700
+++ linux-2.6.16/arch/i386/oprofile/nmi_int.c 2006-06-15
17:03:42.000000000 -0700
@@ -301,7 +301,7 @@
{
__u8 cpu_model = boot_cpu_data.x86_model;

- if (cpu_model > 4)
+ if ((cpu_model > 6) || (cpu_model == 5))
return 0;

#ifndef CONFIG_SMP

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