lkml.org 
[lkml]   [2008]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [X86] Move the 64-bit Intel specific parts out of setup_64.c
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


\
 
 \ /
  Last update: 2008-05-23 15:23    [W:2.356 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site