Skip to contentSkip to conversation

x86: Add support for the latest Intel processors to Oprofile

PATCH Applied Arjan van de Ven 2 participants 3 messages Jan 17, 2008 – Jan 18, 2008 x86

lore
Share & tools
lore
#0 lore raw

Subject: x86: Add support for the latest Intel processors to Oprofile
From: Arjan van de Ven <[email protected]>

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.

---
 arch/x86/oprofile/nmi_int.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/oprofile/nmi_int.c +1 -1
Index: 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;
Signature · 3 lines
If you want to reach me at my work email, use [email protected]
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
Applied
#1 lore raw
Quoted 6 lines · Arjan van de Ven

Subject: x86: Add support for the latest Intel processors to Oprofile
From: Arjan van de Ven <[email protected]>

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.

thanks, applied.

2.6.24 fix too, right?

Ingo

#2 lore raw
Quoted 6 lines · On Fri, 18 Jan 2008 13:36:11 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 3 lines · Arjan van de Ven

Subject: x86: Add support for the latest Intel processors to Oprofile From: Arjan van de Ven <[email protected]>

Quoted 8 lines
Quoted 3 lines

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.

thanks, applied.

2.6.24 fix too, right?

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

Signature · 3 lines
If you want to reach me at my work email, use [email protected]
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org