[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080117101613.65bf008b@laptopd505.fenrus.org>
Date: Thu, 17 Jan 2008 10:16:13 -0800
From: Arjan van de Ven <arjan@...radead.org>
To: linux-kernel@...r.kernel.org
Cc: phil.el@...adoo.fr, mingo@...e.hu
Subject: x86: Add support for the latest Intel processors to Oprofile
Subject: x86: Add support for the latest Intel processors to Oprofile
From: Arjan van de Ven <arjan@...ux.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@...ux.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@...ux.intel.com
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists