[PATCH] support Model-30 Corei7 in Oprofile

Previous thread: [PATCH] mtd: Increase NAND_MAX_OOBSIZE from 128 to 256 by Kevin Cernekee on Monday, May 3, 2010 - 9:20 pm. (2 messages)

Next thread: race condition between udevd and modprobe (mtrr_add) by Kyle Hubert on Monday, May 3, 2010 - 10:30 pm. (3 messages)
From: nick black
Date: Monday, May 3, 2010 - 9:09 pm

Howdy! OProfile doesn't recognize my QM720 Core i7. It knows about Model 26,
but not Model 30. This one-liner, taken against 2.6.34-rc6, addresses that.

Signed-off-by: Nick Black <nickblack@acm.org>
---
I sent a very similar patch to DynamoRIO this weekend. Not many Model-30's
in use yet?

diff -uprN linux-2.6.34-rc6/arch/x86/oprofile/nmi_int.c /home/dank/local/linux-2.6.34-rc6//arch/x86/oprofile/nmi_int.c
--- linux-2.6.34-rc6/arch/x86/oprofile/nmi_int.c	2010-04-29 23:02:05.000000000 -0400
+++ /home/dank/local/linux-2.6.34-rc6//arch/x86/oprofile/nmi_int.c	2010-05-03 23:46:51.018835896 -0400
@@ -601,6 +601,7 @@ static int __init ppro_init(char **cpu_t
 		break;
 	case 0x2e:
 	case 26:
+	case 30:
 		spec = &op_arch_perfmon_spec;
 		*cpu_type = "i386/core_i7";
 		break;

-- 
                                       Nick Black <nickblack@linux.com>
                                  Grad student, GT College of Computing
                    "np: the class of dashed hopes, and idle dreams..."
--

Previous thread: [PATCH] mtd: Increase NAND_MAX_OOBSIZE from 128 to 256 by Kevin Cernekee on Monday, May 3, 2010 - 9:20 pm. (2 messages)

Next thread: race condition between udevd and modprobe (mtrr_add) by Kyle Hubert on Monday, May 3, 2010 - 10:30 pm. (3 messages)