Messages in this thread Patch in this message | | | Subject | [PATCH} Enable OProfile on Pentium D | Date | Fri, 16 Jun 2006 09:53:02 -0700 | From | "Santos, Jose Renato G" <> |
| |
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@hpl.hp.com>
---------------------------
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |