]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
oprofile: Add Support for Intel CPU Family 6 / Model 22 (Intel Celeron 540)
authorPatrick Simmons <linuxrocks123@netscape.net>
Wed, 8 Sep 2010 14:34:28 +0000 (10:34 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:18:23 +0000 (17:18 -0700)
commit c33f543d320843e1732534c3931da4bbd18e6c14 upstream.

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.

Spec:

 http://download.intel.com/design/mobile/SPECUPDT/317667.pdf

Signed-off-by: Patrick Simmons <linuxrocks123@netscape.net>
Acked-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/oprofile/nmi_int.c

index cfe4faabb0f6792aebfb8330dd55f02406b148dc..009b819f48d0a9fee5d3677e343056fe8d9f4c79 100644 (file)
@@ -671,7 +671,9 @@ static int __init ppro_init(char **cpu_type)
        case 14:
                *cpu_type = "i386/core";
                break;
-       case 15: case 23:
+       case 0x0f:
+       case 0x16:
+       case 0x17:
                *cpu_type = "i386/core_2";
                break;
        case 0x1a: