mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* x86: Add support for the latest Intel processors to Oprofile
@ 2008-01-17 18:16 Arjan van de Ven
  2008-01-18 12:36 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Arjan van de Ven @ 2008-01-17 18:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: phil.el, mingo


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-18 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 18:16 x86: Add support for the latest Intel processors to Oprofile Arjan van de Ven
2008-01-18 12:36 ` Ingo Molnar
2008-01-18 17:20   ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®