Re: x86: Add support for the latest Intel processors to Oprofile

Previous thread: [PATCH 3 of 3] slob: correct Kconfig description by Matt Mackall on Thursday, January 17, 2008 - 1:57 pm. (4 messages)

Next thread: [git pull] Input updates for 2.6.24-rc8 by Dmitry Torokhov on Thursday, January 17, 2008 - 2:27 pm. (1 message)
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
--

To: Arjan van de Ven <arjan@...>
Cc: <linux-kernel@...>, <phil.el@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>
Date: Friday, January 18, 2008 - 8:36 am

thanks, applied.

2.6.24 fix too, right?

Ingo
--

To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, <phil.el@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>
Date: Friday, January 18, 2008 - 1:20 pm

On Fri, 18 Jan 2008 13:36:11 +0100

that's a judgement call ... it's sure simple enough

--
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 thread: [PATCH 3 of 3] slob: correct Kconfig description by Matt Mackall on Thursday, January 17, 2008 - 1:57 pm. (4 messages)

Next thread: [git pull] Input updates for 2.6.24-rc8 by Dmitry Torokhov on Thursday, January 17, 2008 - 2:27 pm. (1 message)