Add Support for Intel CPU Family 6 / Model 22 (Intel Celeron 540)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Robert Richter
Quoted 9 lines · Patrick Simmons
This patch adds CPU type detection for the Intel Celeron 540, which is part of the Core 2 family according to Wikipedia; the family and ID pair is absent from the Volume 3B table referenced in the source code comments. I have tested this patch on an Intel Celeron 540 machine reporting itself as Family 6 Model 22, and OProfile runs on the machine without issue. The patch was made against Linux version 2.6.35.4 but is so trivial that it should apply cleanly to anything relevant. Please CC me with any comments or questions as I am not subscribed to the list.
Quoted 5 lines
Quoted 3 lines
--Patrick
Signed-off-by Patrick Simmons <[email protected]>Applied to oprofile/urgent.
Ingo,
please pull this update for tip/perf/urgent from:
git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git urgent
Thanks,
-Robert
Quoted 28 lines
Review static int __init ppro_init(char **cpu_t · line 667
Quoted 11 lines
--- linux/arch/x86/oprofile/nmi_int.c.orig 2010-09-08
08:01:56.000000000 -0600
+++linux/arch/x86/oprofile/nmi_int.c2010-09-08 05:57:18.000000000 -0600(quoted diff) +1
-1@@ -664,7 +664,7 @@ static int __init ppro_init(char **cpu_t case 14: *cpu_type = "i386/core"; break; - case 15: case 23: + case 15: case 22: case 23:I slightly modified the change:
(quoted diff) +3
-1- case 15: case 23: + case 0x0f: + case 0x16: + case 0x17:Thanks Patrick.
-Robert
Quoted 5 lines
(quoted diff) +0
-0*cpu_type = "i386/core_2"; break; case 0x1a:
Signature · 2 lines
Advanced Micro Devices, Inc. Operating System Research Center
Quoted 10 lines · On Thursday 09 September 2010 20:48:12 Robert Richter wrote:
Quoted 9 lines · Robert Richter
Quoted 8 lines · Patrick Simmons
This patch adds CPU type detection for the Intel Celeron 540, which is part of the Core 2 family according to Wikipedia; the family and ID pair is absent from the Volume 3B table referenced in the source code comments. I have tested this patch on an Intel Celeron 540 machine reporting itself as Family 6 Model 22, and OProfile runs on the machine without issue. The patch was made against Linux version 2.6.35.4 but is so trivial that it should apply cleanly to anything relevant. Please CC me with any comments or questions as I am not subscribed to the list.
The patch looks fine, but please note that only some Celeron 540 use this, while others are model 15. However all Core 2 Solo U2xxx and all desktop Celeron 2xx/4xx are model 22 as well.
Arnd