mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: robert.richter@amd.com
Cc: linux-kernel@vger.kernel.org,
	oprofile-list@lists.sourceforge.net, tdm.rhbz@gmail.com,
	Jiri Olsa <jolsa@redhat.com>
Subject: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
Date: Tue, 21 Sep 2010 09:26:35 +0200	[thread overview]
Message-ID: <1285053995-3811-1-git-send-email-jolsa@redhat.com> (raw)

This patch adds CPU type detection for dunnington processor (Family 6 / Model 29)
to be identified as core 2 family cpu type (wikipedia source).

I tested oprofile on Intel(R) Xeon(R) CPU E7440 reporting itself as model 29,
and it runs without an issue.

wbr,
jirka


Signed-off-by: Jiri Olsa <jolsa@redhat.com>
---
 arch/x86/oprofile/nmi_int.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
index 009b819..f1575c9 100644
--- a/arch/x86/oprofile/nmi_int.c
+++ b/arch/x86/oprofile/nmi_int.c
@@ -674,6 +674,7 @@ static int __init ppro_init(char **cpu_type)
 	case 0x0f:
 	case 0x16:
 	case 0x17:
+	case 0x1d:
 		*cpu_type = "i386/core_2";
 		break;
 	case 0x1a:
-- 
1.7.1


             reply	other threads:[~2010-09-21  7:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-21  7:26 Jiri Olsa [this message]
2010-09-21  8:20 ` Robert Richter
2010-09-21 10:09   ` Andi Kleen
2010-09-21 10:33 ` Robert Richter
2010-09-27  7:39   ` [GIT PULL] oprofile fixes Robert Richter
2010-09-27  7:50     ` Ingo Molnar
2010-09-21 11:21 ` [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Arnd Bergmann
2010-09-21 14:13   ` Robert Richter
2010-09-21 14:38     ` Andi Kleen
2010-09-22  7:26       ` Robert Richter
2010-09-22  8:17         ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1285053995-3811-1-git-send-email-jolsa@redhat.com \
    --to=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oprofile-list@lists.sourceforge.net \
    --cc=robert.richter@amd.com \
    --cc=tdm.rhbz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome