Re: [X86] Move the 64-bit Intel specific parts out of setup_64.c

From: Pavel Machek
Date: Fri May 23 2008 - 09:21:19 EST


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@xxxxxxxxxx>

> +/*
> + * 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/