Messages in this thread | | | Date | Fri, 23 May 2008 15:15:07 +0200 | From | Pavel Machek <> | Subject | Re: [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
| |