Check the HTT bit before counting logical threads
commit7c08d791ee4fabf96d96b66dec803602e621057c
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 May 2016 16:09:00 +0000 (19 09:09 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 May 2016 16:09:00 +0000 (19 09:09 -0700)
treefdc67fe76da8482d407594c70260a64c27e31cb7
parenteb2c88c7c83901737db5c4de7dc4470c5681b2cb
Check the HTT bit before counting logical threads

Skip counting logical threads for Intel processors if the HTT bit is 0
which indicates there is only a single logical processor.

* sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
logical threads if the HTT bit is 0.
* sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
(index_cpu_HTT): Likewise.
(reg_HTT): Likewise.
ChangeLog
sysdeps/x86/cacheinfo.c
sysdeps/x86/cpu-features.h