This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] x86: sysconf: use new cpuid.h header


On Tue, Aug 11, 2015 at 2:27 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> This produces better code in the non-PIC case, and when using newer gcc
> versions (as you can declare ebx as clobbered).  Since we require 4.6+,
> and the nptl code already leverages cpuid.h, using it here should be OK.
>
> 2015-08-11  Mike Frysinger  <vapier@gentoo.org>
>
>         * sysdeps/unix/sysv/linux/i386/sysconf.c: Include cpuid.h.
>         (intel_check_word): Change inline cpuid asm to __cpuid_count and
>         __cpuid.
>         (handle_intel, handle_amd, __sysconf): Likewise.

Please fix it on hjl/cpuid/master branch, which I am planning to check in
shortly.

Thanks.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]