Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [PATCH] Add Support for Intel CPU Family 6 / Model 22 (Intel Celeron 540)

15 views
Skip to first unread message

Robert Richter

unread,
Sep 9, 2010, 3:00:02 PM9/9/10
to
On 09.09.10 14:31:02, Robert Richter wrote:
> On 08.09.10 10:34:28, Patrick Simmons wrote:
> > 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.
> >
> > --Patrick
> >
> > Signed-off-by: Patrick Simmons <linuxr...@netscape.net>
>
> 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

>
> >
> > --- linux/arch/x86/oprofile/nmi_int.c.orig 2010-09-08
> > 08:01:56.000000000 -0600
> > +++ linux/arch/x86/oprofile/nmi_int.c 2010-09-08 05:57:18.000000000 -0600
> > @@ -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:
>
> - case 15: case 23:
> + case 0x0f:
> + case 0x16:
> + case 0x17:
>
> Thanks Patrick.
>
> -Robert
>
> > *cpu_type = "i386/core_2";
> > break;
> > case 0x1a:
> >
> >

--
Advanced Micro Devices, Inc.
Operating System Research Center

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Arnd Bergmann

unread,
Sep 9, 2010, 4:30:02 PM9/9/10
to
On Thursday 09 September 2010 20:48:12 Robert Richter wrote:
> On 09.09.10 14:31:02, Robert Richter wrote:
> > On 08.09.10 10:34:28, Patrick Simmons wrote:
> > > 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

0 new messages