about summary refs log tree commit diff
path: root/sysdeps/x86/cpu-features.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-07-26 10:49:19 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-07-26 13:31:11 -0700
commitbe525a69a6630abc83144c0a96474f2e26da7443 (patch)
tree35e467bb9d1c57717fea17b7de6230a56a07e05b /sysdeps/x86/cpu-features.h
parent65d87ade1ee6f3ac099105e3511bd09bdc24cf3f (diff)
downloadglibc-be525a69a6630abc83144c0a96474f2e26da7443.tar.gz
glibc-be525a69a6630abc83144c0a96474f2e26da7443.tar.xz
glibc-be525a69a6630abc83144c0a96474f2e26da7443.zip
x86: Populate COMMON_CPUID_INDEX_80000001 for Intel CPUs [BZ #23459]
Reviewed-by: Carlos O'Donell <carlos@redhat.com>

	[BZ #23459]
	* sysdeps/x86/cpu-features.c (get_extended_indices): New
	function.
	(init_cpu_features): Call get_extended_indices for both Intel
	and AMD CPUs.
	* sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
	Remove "for AMD" comment.
Diffstat (limited to 'sysdeps/x86/cpu-features.h')
-rw-r--r--sysdeps/x86/cpu-features.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/cpu-features.h b/sysdeps/x86/cpu-features.h
index 3807a9d611..347a4b118d 100644
--- a/sysdeps/x86/cpu-features.h
+++ b/sysdeps/x86/cpu-features.h
@@ -108,7 +108,7 @@ enum
   {
     COMMON_CPUID_INDEX_1 = 0,
     COMMON_CPUID_INDEX_7,
-    COMMON_CPUID_INDEX_80000001,	/* for AMD */
+    COMMON_CPUID_INDEX_80000001,
     /* Keep the following line at the end.  */
     COMMON_CPUID_INDEX_MAX
   };