[PATCH] Check the HTT bit before counting logical threads
Andreas Schwab
schwab@linux-m68k.org
Tue May 17 18:48:00 GMT 2016
"H.J. Lu" <hongjiu.lu@intel.com> writes:
> diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c
> index 8408624..09113ba 100644
> --- a/sysdeps/x86/cacheinfo.c
> +++ b/sysdeps/x86/cacheinfo.c
> @@ -506,6 +506,11 @@ init_cacheinfo (void)
> shared = core;
> }
>
> + /* A value of 0 for the HTT bit indicates there is only a single
> + logical processor. */
> + if (!HAS_CPU_FEATURE (HTT))
> + goto intel_no_threads;
Why goto?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list