x86: Add support for the latest Intel processors to Oprofile

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: <phil.el@...>, <mingo@...>
Date: Thursday, January 17, 2008 - 2:16 pm

Subject: x86: Add support for the latest Intel processors to Oprofile
From: Arjan van de Ven <arjan@linux.intel.com>

The latest Intel processors (the 45nm ones) have a model number of 23
(old ones had 15); they're otherwise compatible on the oprofile side.
This patch adds the new model number to the oprofile code.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>

---
 arch/x86/oprofile/nmi_int.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.24-rc7-oprofile/arch/x86/oprofile/nmi_int.c
===================================================================
--- linux-2.6.24-rc7-oprofile.orig/arch/x86/oprofile/nmi_int.c
+++ linux-2.6.24-rc7-oprofile/arch/x86/oprofile/nmi_int.c
@@ -380,7 +380,7 @@ static int __init ppro_init(char ** cpu_
 
 	if (cpu_model == 14)
 		*cpu_type = "i386/core";
-	else if (cpu_model == 15)
+	else if (cpu_model == 15 || cpu_model == 23)
 		*cpu_type = "i386/core_2";
 	else if (cpu_model > 0xd)
 		return 0;

-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86: Add support for the latest Intel processors to Oprofile, Arjan van de Ven, (Thu Jan 17, 2:16 pm)