All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Dave Jones <davej@redhat.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
	hpa@zytor.com
Subject: Re: [X86] Move the 64-bit Intel specific parts out of setup_64.c
Date: Fri, 23 May 2008 15:15:07 +0200	[thread overview]
Message-ID: <20080523131506.GG9245@ucw.cz> (raw)
In-Reply-To: <200805221944.m4MJiA9g029838@gelk.kernelslacker.org>

Hi!

> Create a separate intel_64.c file in the cpu/ dir for
> the useful parts to live in.
> 
> Signed-off-by: Dave Jones <davej@redhat.com>

> +/*
> + * find out the number of processor cores on the die
> + */
> +static int __cpuinit intel_num_cpu_cores(struct cpuinfo_x86 *c)
> +{
> +	unsigned int eax, t;
> +
> +	if (c->cpuid_level < 4)
> +		return 1;
> +
> +	cpuid_count(4, 0, &eax, &t, &t, &t);
> +
> +	if (eax & 0x1f)
> +		return ((eax >> 26) + 1);
> +	else
> +		return 1;
> +}

I don't get it. Original Core duo is not 64 bit capable... so this
should go into common code?
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2008-05-23 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22 19:44 [X86] Move the 64-bit Intel specific parts out of setup_64.c Dave Jones
2008-05-23 13:15 ` Pavel Machek [this message]
2008-05-23 15:05   ` H. Peter Anvin

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=20080523131506.GG9245@ucw.cz \
    --to=pavel@ucw.cz \
    --cc=davej@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.