This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Check the HTT bit before counting logical threads


"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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]