glibc/sysdeps
H.J. Lu a546baa9cd Properly count number of logical processors on Intel CPUs.
The meaning of the 25-14 bits in EAX returned from cpuid with EAX = 4
has been changed from "the maximum number of threads sharing the cache"
to "the maximum number of addressable IDs for logical processors sharing
the cache" if cpuid takes EAX = 11.  We need to use results from both
EAX = 4 and EAX = 11 to get the number of threads sharing the cache.

The 25-14 bits in EAX on Core i7 is 15 although the number of logical
processors is 8.  Here is a white paper on this:

http://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration/

This patch correctly counts number of logical processors on Intel CPUs
with EAX = 11 support on cpuid.  Tested on Dinnington, Core i7 and
Nehalem EX/EP.

It also fixed Pentium Ds workaround since EBX may not have the right
value returned from cpuid with EAX = 1.
2009-08-07 09:39:36 -07:00
..
generic Handle unloading of DSO with a unique symbol definition. 2009-07-23 07:07:53 -07:00
gnu [BZ #5628] 2008-01-16 23:49:43 +00:00
i386 Add x86 SSE strlen. 2009-08-04 18:15:02 -07:00
ia64 Stop backtrace when we make no more progress. 2009-07-30 16:53:52 -07:00
ieee754 Fix errno for boundary conditions in 128-bit long double. 2009-05-29 12:00:22 -07:00
mach remove subsumed .gitignore entries and files 2009-05-16 10:41:40 +02:00
posix Handle missing NSS modules and those without callbacks. 2009-07-25 12:29:04 -07:00
powerpc Fix wrong PPC_FEATURE_* values. 2009-07-05 23:46:03 -07:00
pthread * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary 2007-11-10 19:40:16 +00:00
s390 More white space fixes. 2009-07-24 08:34:47 -07:00
sh Add ____longjmp_chk for SH. 2009-05-18 15:44:09 -07:00
sparc * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty. 2009-04-14 20:57:18 +00:00
unix Remove leftover code from Linux/x86 ____longjmp_chk. 2009-08-02 21:51:37 -07:00
wordsize-32 * po/.cvsignore: List libc.pot.files, and not any .pot names. 2006-01-08 06:46:10 +00:00
wordsize-64 [BZ #9759] 2009-03-15 21:33:19 +00:00
x86_64 Properly count number of logical processors on Intel CPUs. 2009-08-07 09:39:36 -07:00