[PATCH] x86: sysconf: use new cpuid.h header
H.J. Lu
hjl.tools@gmail.com
Tue Aug 11 10:45:00 GMT 2015
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.
More information about the Libc-alpha
mailing list