lkml.org 
[lkml]   [2006]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH} Enable OProfile on Pentium D
Date
From
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/

\
 
 \ /
  Last update: 2006-06-16 18:55    [W:0.058 / U:1.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site