This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Check the HTT bit before counting logical threads
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: "H.J. Lu" <hongjiu dot lu at intel dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Tue, 17 May 2016 20:35:39 +0200
- Subject: Re: [PATCH] Check the HTT bit before counting logical threads
- Authentication-results: sourceware.org; auth=none
- References: <20160517180257 dot GA27253 at intel dot com>
"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."