[PATCH} Enable OProfile on Pentium D

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

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

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux