From: Benjamin LaHaise Date: Sat, 16 Sep 2006 23:35:46 +0000 (-0700) Subject: [PATCH] i386/x86-64: Add core 2 to oprofile X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f04b92e97d21b1921c91ec1d6d5e8bbf8606b77a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] i386/x86-64: Add core 2 to oprofile Add the CPU identification needed by oprofile for Intel (r) Core (tm) 2 CPUs. Signed-off-by: Benjamin LaHaise Signed-off-by: Andi Kleen Cc: "Arun Sharma" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/oprofile/nmi_int.c b/arch/i386/oprofile/nmi_int.c index c8c1df8ff2b..5f8dc8a21bd 100644 --- a/arch/i386/oprofile/nmi_int.c +++ b/arch/i386/oprofile/nmi_int.c @@ -337,6 +337,8 @@ static int __init ppro_init(char ** cpu_type) if (cpu_model == 14) *cpu_type = "i386/core"; + else if (cpu_model == 15) + *cpu_type = "i386/core_2"; else if (cpu_model > 0xd) return 0; else if (cpu_model == 9) {