From: "Santos, Jose Renato G" 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. Signed-off-by: Jose Renato Santos Cc: Philippe Elie Cc: John Levon Cc: Andi Kleen Cc: Rohit Seth Signed-off-by: Andrew Morton --- arch/i386/oprofile/nmi_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/i386/oprofile/nmi_int.c~enable-oprofile-on-pentium-d arch/i386/oprofile/nmi_int.c --- a/arch/i386/oprofile/nmi_int.c~enable-oprofile-on-pentium-d +++ a/arch/i386/oprofile/nmi_int.c @@ -331,7 +331,7 @@ static int __init p4_init(char ** cpu_ty { __u8 cpu_model = boot_cpu_data.x86_model; - if (cpu_model > 4) + if ((cpu_model > 6) || (cpu_model == 5)) return 0; #ifndef CONFIG_SMP _